如何通过删除普通文件来优化Silverlight XAP文件的大小? [英] How to optimize the size of silverlight XAP file by removing common files?

查看:190
本文介绍了如何通过删除普通文件来优化Silverlight XAP文件的大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一堆常见的三方会议,我在多个银灯项目中使用。每个都生成自己的XAP文件,具有相同的第三方dll的副本。我想知道,只有当本地缓存dll与以前加载的其他XAP使用的常用dll不同时,可能会分开常见的第三方dll,并加载?换句话说,我在想的是,第一次当我进入一个新的silverlight页面,它会加载应用程序XAp和Common XAP文件,从那个silverlight应用程序,我去另一个silverlight页面,反过来又加载另一个XAP,但是这一次,它不会加载通用的dll XAP,因为它已经由第一个XAP加载加载。



谢谢,

解决方案

我认为一个更优化的解决方案是尝试使用类似的方式来缩小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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆