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

查看:44
本文介绍了未知的构建错误,“无法加载文件或程序集"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:Program Files (x86)Microsoft Silverlight5.1.20913.0文件夹中找到了system.windows version 5.0.5.0

Finally found a system.windows version 5.0.5.0 in C:Program Files (x86)Microsoft Silverlight5.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天全站免登陆