有必要将“标准”程序集移出 xap 文件(Silverlight 4 应用程序)。我有一个类似的问题(Silverlight:如何处理标准程序集)并得到了一个很好的链接和深入的解释。但并非一切都清楚。
在我打开“使用应用程序库缓存减少 XAP 大小”后,我的 xap 文件的大小减少了两次,以下程序集被移出到单独的 zip 文件中:
- System.ComponentModel.DataAnnotations;
- System.Windows.Controls,
- System.Windows.Controls.Data,
- System.Windows.Controls.Data.Input,
- System.Windows.Controls.Input,
- System.Windows.Controls.Navigation,
- System.Windows.Controls.Toolkit;
- 系统.Windows.数据。
但是仍然很少有其他看起来像好的候选者可以移出到单独的文件中:
- GalaSoft.MvvmLight.SL4,
- Microsoft.Practices.ServiceLocation,
- Microsoft.Practices.Unity.Silverlight,
- System.Windows.Controls.Toolkit.Internals。
所有这些程序集都从 Silverlight 应用程序(以及使用这些程序集的 Silverlight 项目)引用。
你能解释一下吗:
- Q1。这些提到的程序集有什么区别?
- Q2。如何将这 4 个程序集也移动到单独的 zip 文件中?
非常感谢你!
PS大概,我的问题的答案在文本中:
添加对 Silverlight SDK 中的库程序集的引用,或对伴随有效的 assemblyShortName.extmap.xml 映射文件的任何程序集的引用。
但我不明白这是什么意思。如果我正确理解,我需要将这些程序集(我想移出)的引用添加到 Silverlight SDK 中。但是怎么做呢?谢谢。