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

Minify doesnt work for me. What am i missing?

6 Answers 83 Views
Telerik Minifier
This is a migrated thread and some comments may be shown as answers.
Mac P
Top achievements
Rank 1
Mac P asked on 01 Jul 2010, 10:18 PM
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

6 Answers, 1 is accepted

Sort by
0
Valentin.Stoychev
Telerik team
answered on 02 Jul 2010, 06:20 AM
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
0
Mac P
Top achievements
Rank 1
answered on 02 Jul 2010, 03:17 PM
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

0
Miro Miroslavov
Telerik team
answered on 02 Jul 2010, 03:40 PM
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
0
Ben Hayat
Top achievements
Rank 2
answered on 02 Jul 2010, 05:29 PM
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
0
Mac P
Top achievements
Rank 1
answered on 04 Jul 2010, 04:53 PM
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
0
Miro Miroslavov
Telerik team
answered on 06 Jul 2010, 07:46 AM
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
Tags
Telerik Minifier
Asked by
Mac P
Top achievements
Rank 1
Answers by
Valentin.Stoychev
Telerik team
Mac P
Top achievements
Rank 1
Miro Miroslavov
Telerik team
Ben Hayat
Top achievements
Rank 2
Share this question
or