未知的生成错误,“无法加载文件或程序集'System.Windows [英] Unknown build error, 'Could not load file or assembly 'System.Windows

查看:1907
本文介绍了未知的生成错误,“无法加载文件或程序集'System.Windows的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图建立Silverlight应用程序的测试项目。当我建立这个项目,它抛出以下错误

I am trying to build a test project for silverlight application. When i build this project it throws following error

Unknown build error, 'Could not load file or assembly 'System.Windows, Version=5.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)'

我有system.winwos在我引用DLL和我使用的Visual Studio 2012。

I have system.winwos dll in my references and i am using visual studio 2012.

我应该怎么做才能解决这个错误

What should i do to resolve this error

更多细节:

如果我删除system.windows.control.Navigation DLL,这个错误不再出现,但构建需要system.windows.control.Navigation。

If I remove system.windows.control.Navigation dll, this error no longer comes up but build requires system.windows.control.Navigation.

推荐答案

最后发现在C一system.windows版本5.0.5.0:\\ Program Files文件(x86)的\\微软的Silverlight \\ 5.1.20913.0文件夹

Finally found a system.windows version 5.0.5.0 in C:\Program Files (x86)\Microsoft Silverlight\5.1.20913.0 folder

不得不在project.csproj文件中使用标签手动添加文件
获取其他构建误差不但至少这一次得到解决。

Had to add this file manually in project.csproj file using tag Getting other build errors not but at least the this one is resolved.

感谢您的帮助!

这篇关于未知的生成错误,“无法加载文件或程序集'System.Windows的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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