This is the error we get:
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
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.
Does anyone have any input or advice on where or how we can reference System.Windows to fix this problem?
In my case there was no System.Windows reference available to pick up.
I had to include a reference to WindowsBase
You have to add the reference to the project. If you're using Visual Studio, right-click the project in the Solution Explorer, and choose Add Reference...
I had the same problem, however it was caused because we are using a Portable Class library and only occurred on certain PC installations.
I found the issue to be fixed on these installation with:
http://www.microsoft.com/en-us/download/details.aspx?id=3556
As this fix is included with VS2010 and Windows Update it would only occur on certain PCs.
Add the assembly reference as you'd add any other framework assembly reference:
I've found the needed WindowsBase.dll in
Right click on your "References" folder and click "Add Reference" and then select System.Windows under the .NET tab.