找不到System.Windows大会 [英] Can not find System.Windows Assembly
问题描述
这是我们得到的错误:
错误1型'System.Windows.Point'是在组件,其定义未引用。您必须添加到程序集的引用'System.Windows,版本= 2.0.5.0,文化=中性公钥= 7cec85d7bea7798e。 C:\PacMan\PacMan\PacMan\PacManTests\UnitTest1.cs 65 13 PacManTests
Error 1 The type 'System.Windows.Point' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Windows, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e'. C:\PacMan\PacMan\PacMan\PacManTests\UnitTest1.cs 65 13 PacManTests
我们得到这个错误我们的单元测试项目,该项目不能找到System.Windows大会,但我们主要的项目可以找到组装和运行良好。
We get this error in our unit test project which cant find the System.Windows Assembly but our main project can find the assembly and run it fine.
有没有人有任何输入或建议,或者在哪里我们怎么可以参考System.Windows来解决这个问题?
Does anyone have any input or advice on where or how we can reference System.Windows to fix this problem?
推荐答案
在我的情况下,没有System.Windows引用可供挑选了。结果
我必须包括 WindowsBase
In my case there was no System.Windows reference available to pick up.
I had to include a reference to WindowsBase
这篇关于找不到System.Windows大会的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!