问题描述
在我的Silverlight应用程序,我不断收到此错误的第一次加载:
On first load of my Silverlight application I keep getting this error:
无法加载文件或程序
系统.Windows,版本= 2.0.5.0,
区域性=中性,
公钥= 7cec85d7bea7798e'或其依赖
之一。该系统
找不到指定文件
但只是刷新页面,它会被解决!
but by just refreshing the page, it'll be solved!
似乎它的已知的Silverlight的bug:
的
it seems that it's known bug of Silverlight :http://connect.microsoft.com/VisualStudio/feedback/details/464190/silverlight-compilation-problem-in-team-build-environment
他们提出的解决方法,但对我来说是行不通的。
they suggest workaround, but does not work in my case.
推荐答案
那么实际上System.Windows程序集复制到输出目录解决了这个问题形成了我。只要确保它被复制到徘徊无论你将要执行你的应用程序,而不仅仅是Debug文件夹。也有不具有类似问题的很好的替代:
Well actually 'System.Windows' assembly is copied to the output directory solved the problem form me. Just make sure that it is copied to whereever you're going to be executing your app, not just the Debug folder. Also there is a very good alternative that doesn't have similar problems: SilverUnit
这篇关于无法加载文件或程序> 'System.Windows,版本= 2.0.5.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!