如何通过删除普通文件来优化Silverlight XAP文件的大小? [英] How to optimize the size of silverlight XAP file by removing common files?
问题描述
谢谢,
我认为一个更优化的解决方案是尝试使用类似的方式来缩小XAP / Zip文件 ComponentOne XAPOptimizer 。您的方法的问题是,您正在引入项目之间的依赖关系,如果一个或多个项目更改,则无法管理项目。 此是降低战略的良好资源XAP文件大小。
I have bunch of common thrid party dlls that I use in multiple silver light projects. Each produce its own XAP files with same copy of the thrid party dlls. I would like to know, is it possibl to seperate the common thrid party dlls out and load only if the local cache dll is different from the common dll used by some other XAP that was previously loaded?
In other words, what I was thinking is, first time when I enter a new silverlight page, it would load the application XAp and the Common XAP file, from that silverlight app, I go to another silverlight page, which in turn loads another XAP but this time, it will not load the common dll XAP since it was already loaded by the first XAP load.
Thanks,
I think a more optimal solution would be to try to minify your XAP/Zip files using something like ComponentOne XAPOptimizer. The problem with your approach is that you are introducing dependencies between projects that in no way could be managed if one or more projects change. This is a good resource for strategies to lower XAP file size.
这篇关于如何通过删除普通文件来优化Silverlight XAP文件的大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!