Minify doesnt work for me. What am i missing?

Thread is closed for posting
7 posts, 0 answers
  1. Mac P
    Mac P avatar
    84 posts
    Member since:
    Mar 2010

    Posted 01 Jul 2010 Link to this post

    Hello,

    I am using silverlight upload control. When i load minified assembly to minifier it shows correctly that only two controls i selected (Upload and progressbar) have size greater than 0.
    However the dll size is not reduced. And the resultant client xap file is the same as previous one. I have cleaned the solution and rebuild it after deleting xap file. But it is just the same.

    Infact size of dlls are also same. The one i upload is same as one i download. Only difference is that only the controls i selected to be included in assembly have size in it.

    Can you try at your end and see what is the assembly size after minifyings?
    I just need to build silverlight upload control for my asp.net ajax web app.

    Thanks for your help.

    Regards
    Mac
  2. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 02 Jul 2010 Link to this post

    Hello Mac P,

    Can you send us the zip file that you have downloaded from minifier.telerik.com. It contains an XML file which we want to examine together with the produced dlls.

    thanks!

    Sincerely yours,
    Valentin.Stoychev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft banner
  4. Mac P
    Mac P avatar
    84 posts
    Member since:
    Mar 2010

    Posted 02 Jul 2010 Link to this post

    Valentin,

    I minified the assembly again and it worked fine. However when i add reference and build it the size remanins the same for xap file.

    The minified assembly Telerik.Windows.Controls.dll size is 276kb
    Telerik.Windows.Controls.Input is 92kb but xap file size remains the same.

    I noticied that after building it the size of dll in bin directory is same as orginial (around 1 mb of windows.control).
    I tried for new project  and existing project.

    I think that VS 2010 is referencing the older version of assemblies as mentioned below
    http://weblogs.asp.net/lduveau/archive/2010/06/24/cool-tool-assembly-minifier-tool.aspx

  5. Miro Miroslavov
    Admin
    Miro Miroslavov avatar
    588 posts

    Posted 02 Jul 2010 Link to this post

    Hello Mac P,

    This issue was discussed also here. The problem is in the Visual Studio, because it caches the assemblies and after minifying - they still have the same version, token and the VS doesn't recognize that this assemblies are new.
    You may check if the path to the referenced assembly is the same as the path to the minifed assemblies. If it is ok you can clean up a couple of times and at the end you may delete the bin folders and ClientBin manually and then rebuild.

    When you start new project and reference the minified assemblies this shouldn't happen.

    Best wishes,
    Miro Miroslavov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  6. Ben Hayat
    Ben Hayat avatar
    892 posts
    Member since:
    May 2008

    Posted 02 Jul 2010 Link to this post

    A minor comment. I see the process of minifier as the last step before publishing your xap to hosting or client. It's not something that is done after each built of your app.
    This brings up two points:
    a) I prefer the exiting method of Minifier delivery (via web as is), since we can always use the latest version Telerik releases, without installing it into VS.
    b) Since this process is only applicable to your final xap, I don't mind deleting the content of the bin directory, to ensure there is no cache issue.

    Just my two cents!
    ..Ben
  7. Mac P
    Mac P avatar
    84 posts
    Member since:
    Mar 2010

    Posted 04 Jul 2010 Link to this post

    It seems that i am missing something.
    Even for new project when i reference minfied assembly after build the size is same as old assembly and xap file is around 400 kb and this is for new project without any code in it.

    I have VS 2010 ultimate with telerik silverlight trial version.

    regards
    mac
  8. Miro Miroslavov
    Admin
    Miro Miroslavov avatar
    588 posts

    Posted 06 Jul 2010 Link to this post

    Hello Mac P,

    Can please you give us some details of what exactly you're doing?
    How do you create your new project? Do you explicitly add the references to the new assemblies via Visual Studio "Add Reference" dialog or you drag the controls directly from the toolbox (which will get them from the install folder)?

    You may also watch the "Introduction to Assembly Minifier" video, where we minify the Minifier UI app.

    Thank you for your assistance.

    Best wishes,
    Miro Miroslavov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top
DevCraft banner