Add reference does not take the minified assemblies

Thread is closed for posting
9 posts, 0 answers
  1. uku
    uku avatar
    57 posts
    Member since:
    Mar 2009

    Posted 21 Jun 2010 Link to this post

    Hello,

    to decrease the size of my XAP file, I've tested the assembly minifier. Everything looks fine and the minified assemblies are indeed much smaller than the original ones.

    I've followed the steps described in the blog entry but I've the following problem.
    When creating a new project and add references to the minified assemblies everything is fine. But when I'm adding references to an already existing project than the original assemblies from the installation are taken although I've selected the new ones.

    As described in the blog entry, I've removed the old once and cleaned up the solution.

    Do I miss something?

    Thanks for your support

    Uwe
  2. Miro Miroslavov
    Admin
    Miro Miroslavov avatar
    588 posts

    Posted 22 Jun 2010 Link to this post

    Hi uku,

    Sometimes the Visual Studio is not cleaning the solution correct. Can you try first to Clean up the solution, with the original ref. assemblies and after that remove them and reference the new ones.
    You may also try to close the Visual Studio and open it again. Sometimes it caches the old assemblies, and since they are loaded once, it doesn't want to load them again.
    Hope this will helps you.

    Please let us know if you still have problems.
    We will be very happy to see your feedback also.
    Thank you.

    Sincerely yours,
    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
  3. DevCraft banner
  4. Laurent Duveau
    Laurent Duveau avatar
    4 posts
    Member since:
    Oct 2009

    Posted 23 Jun 2010 Link to this post

    I have the exact same problem.
    I did what you suggest but no luck.
  5. uku
    uku avatar
    57 posts
    Member since:
    Mar 2009

    Posted 24 Jun 2010 Link to this post

    Hello Laurent,

    I made the same experience. Cleaning, restarting etc. does not help.
    What I simply did was the following
    - cleaning up the solultion
    - remove the telerik references
    - close the app
    - rename the telerik program folder in program files to telerik-ori
    - start the app and add the reference from the folder where the minified assemblies are located
    - In my case now the minified assemblies are taken because the original folder does not exist anymore
    - afterwards I've renamed the telerik program folder name back to its original name

    What I've observed was that after downloading the zip file with the minified assemblies from the telerik site, I forgot to unblock the file.
    So after adding the references to my project I've got an error message that the ddl are from an web download. I have to unblock the ddls and than they were accepted.
    I don't know if this could be the reason that visual studio always preferred to take the original ones.

    Cheers

    Uwe

  6. Laurent Duveau
    Laurent Duveau avatar
    4 posts
    Member since:
    Oct 2009

    Posted 24 Jun 2010 Link to this post

    Ok it worked!
    I was not able to rename the Telerik folder in program files, so I renamed folders inside.
    Hope VS will enable this scenario in the future, because it makes this minifier unusable for now, even if the tool itself works properly.
  7. ewart
    ewart avatar
    221 posts
    Member since:
    Jan 2007

    Posted 13 Jul 2010 Link to this post

    This was a time waster for me too, I can see why someone would say it's unusable.  However, I can only think it is a fault with VS2010, if I pick a DLL in a particular path, I expect it to reference that DLL and not something else.

    Clearing everything relating to telerik from my projects and solution files - bin, obj, cache, and clientbin (yes I know but I was desperate!)  Unblocked the other files had no effect for me.

    Using administrator privileges to rename the Program Files(86)\Telerik.. subdirectory, something I avoided until exhausting all other options, worked immediately.

    I wonder if telerik incremented or changed the assembly numbers to be different to what is presumably in the GAC whether this problem would go away?
  8. Miro Miroslavov
    Admin
    Miro Miroslavov avatar
    588 posts

    Posted 14 Jul 2010 Link to this post

    Hi ewart,

    Sorry for the wasting time, we know it's annoying - it annoys me very much as well.
    Your idea is good and we will consider it, even we have special versioning rules for the assemblies - but in that case we may break them a little for the sake of working "Cleaning".

    Regards,
    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
  9. Ferenc Papp
    Ferenc Papp avatar
    1 posts
    Member since:
    Jun 2010

    Posted 10 Nov 2010 Link to this post

    Pferenc's workaround:
    - minify your telerik DLLs
    - remove original Telerik DLL references
    - rename the minified DLLs like: "Telerik.XXX.YYY.Minified.dll"
    - reference the renamed, minified DLLs.

    This worked for me in a simple scenario (one single DLL).
    Please, let me know if it stands as a general workaround for more complex scenarios as well.
  10. Viktor Tsvetkov
    Admin
    Viktor Tsvetkov avatar
    382 posts

    Posted 16 Nov 2010 Link to this post

    Hi Ferenc Papp,

    This sounds like a working workaround. If you experience any problems in a more complex scenario, please tell us.

    Sincerely yours,
    Viktor Tsvetkov
    the Telerik team
    See What's New in RadControls for Silverlight in Q3 2010 on Tuesday, November 16, 2010 11:00 AM - 12:00 PM EST or 10:00 PM - 11:00 PM EST: Register here>>
Back to Top
DevCraft banner