开发者

Remove unused styles in a Silverlight application

I'd like to remove all the unused styls in order to shirnk the xap file, is ther开发者_高级运维e a tool for doing .xap size optimization?


One way to reduce the XAP size is to have the System assemblies cached: http://www.wintellect.com/CS/blogs/jprosise/archive/2009/04/06/silverlight-3-s-new-assembly-caching.aspx

StackOverflow's friebndly sponsor Telerik has a tool for reducing XAP size when you use their controls: http://blogs.telerik.com/blogs/posts/10-06-10/telerik_assembly_minifier.aspx I've tried it and it looks very OK, but I've not used it in production.

For finding unused styles, I've not found no better tools than the Find dialog (and an apprentice...)


I wrote a small application for listing the unused styles in Silverlight. The source code and binary may be found here:

Removing unused styles from Silverlight projects

Cheers,

Bruno

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜