This is a migrated thread and some comments may be shown as answers.

Add reference does not take the minified assemblies

8 Answers 124 Views
Telerik Minifier
This is a migrated thread and some comments may be shown as answers.
uku
Top achievements
Rank 1
uku asked on 21 Jun 2010, 10:03 AM
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

8 Answers, 1 is accepted

Sort by
0
Miro Miroslavov
Telerik team
answered on 22 Jun 2010, 12:55 PM
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
0
Laurent Duveau
Top achievements
Rank 1
answered on 24 Jun 2010, 03:56 AM
I have the exact same problem.
I did what you suggest but no luck.
0
uku
Top achievements
Rank 1
answered on 24 Jun 2010, 10:26 AM
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

0
Laurent Duveau
Top achievements
Rank 1
answered on 24 Jun 2010, 01:54 PM
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.
0
ewart
Top achievements
Rank 1
answered on 13 Jul 2010, 11:43 PM
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?
0
Miro Miroslavov
Telerik team
answered on 14 Jul 2010, 07:44 AM
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
0
Ferenc Papp
Top achievements
Rank 1
answered on 10 Nov 2010, 10:08 PM
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.
0
Viktor Tsvetkov
Telerik team
answered on 16 Nov 2010, 01:09 PM
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>>
Tags
Telerik Minifier
Asked by
uku
Top achievements
Rank 1
Answers by
Miro Miroslavov
Telerik team
Laurent Duveau
Top achievements
Rank 1
uku
Top achievements
Rank 1
ewart
Top achievements
Rank 1
Ferenc Papp
Top achievements
Rank 1
Viktor Tsvetkov
Telerik team
Share this question
or