English 中文(简体)
如何阻止银灯Xap文档,包括“Copy Local=False”的 d?
原标题:How to stop Silverlight xap files including "Copy Local=False" dlls?

以往,我曾使用下述URL中概述的解决办法,避免在组合式银星应用中多次下载3份当事方的钟:

如何通过删除共同档案来优化银灯XAP文档的大小?

However I am working on a Visual Studio 2010/Silverlight 5 solution application where this is not working.

I have a PRISM module let s call it Parent1.csproj that has no references to my 3rdParty dlls but it does have a reference to two other project files which reference the 3rdParty dlls child1.csproj and child2.csproj

儿童1.csproj和2.csproj两人都有“Copy Local”伪造的三党。 dlls,但尽管如此,父母1的食谱。 csproj 载有第三人证。

如果我在父母1.csproj档案中将儿童1.csproj和2.csproj提到“Copy Local”伪造的话,那么我就得到一份大幅度下降的Xap档案,没有三党的lls,但我实际上需要能够操作的儿童项目中也没有一部其他法典。

似乎包括项目档案,却忽视了他们的“Copy Local”环境,而是利用了家长的“Copy Local”环境,而且我没有办法排除这三党。

我在这里是否忽略了一些微妙之处? 是否有其他办法,我可以避免下载这三党。 d 多个单元的剪辑,当壳申请已经下载时?

最佳回答

我不相信why 这个问题发生,但与棱晶有关。 我们解决该问题的方式是,提及所有启动项目和每个次级项目,尽管它们没有直接提及<>项目,但该项目也提及该项目。

  1. 确保“通过使用应用图书馆剪辑的方式减少XAP的大小”能够用于<>all 的项目。

  2. 确保<代码>Parent1.csproj提及所有您的3rd 当事人证。

  3. 添加以下文字:child1.csprojchild2.csproj

  4. 双重检查:所有贵3个rd的当事方的卷宗。 如果这些货物缺失,将装入XAP档案。

问题回答

加上对模块项目的提法,并给当地人打造假版,将会奏效,这多少是所接受的答复所描述的。 然而,应用图书馆教学没有在棱晶模块中得到支持,因此可能无法按预期运作。

如果你有大量的集会参考资料,以这种方式补充这些文件是无法维持的。 你们也可以使用一个在后建造的步骤,从《XAP》中排除不必要的集会。 http://thorarin.net/blog/post/09/15/XapReduce-Optimizing-Modular-Silverlight-Applications.aspx”rel=“nofollow” 。





相关问题
Silverlight Rich text box control

Our team decided that we need our own custom Rich text box control for Silverlight app we are developing. We looked at existing controls mentioned at A good rich text control for Silverlight but ...

Silverlight ImageBrush not rendering (with Bing Map Control)

I m trying to add an image to a Pushpin instance from the Silverlight Bing Map Control, but I can t seem to get it to render (the pushpin renders fine). This is probably a general WPF question rather ...

Silverlight OpenFileDialog DoEvents equivalent

I m processing large files after they are selected by the user. My code looks like the following: if (FileDialog.ShowDialog() == true) { // process really big file } This freezes up the UI so ...

list of controls with templates in silverlight

Does anyone know where to find a list of controls that you can set the template on in Silverlight? I ve wasted several hours now trying to create control templates only to find that the control doesn ...

Silverlight, Updating the UI during processing

I have a simple silverlight multifile upload application, and i want to provide the user with some feedback, right now its only in a test phase and i dont have the webservice. Somehow i cant get the ...

Silverlight 3 - FindName returns null

This looks a bug to me.. Using Silverlight 3 and i have a user control defined in XAML and trying to access the object during runtime returns a null. <Grid> <common:CommonGridEditPanel x:...

silverlight 3 collection binding

Someone please help me understand why this binding does not work... I have a class called SelectionManager with a property called dates which is populated by a WCF service. The property is an ...