In my case there was no System.Windows reference available to pick up.
I had to include a reference to WindowsBase
Add the assembly reference as you'd add any other framework assembly reference:
Add System.Windows
assembly reference:
If this does not solve the issue try Adding PresentationFramework
, PresentationCore
and WindowsBase
assemblies (.NET 3.5
)
We found it we had to go into the Silverlight folder and found the System.Windows.dll and now all is good thanks for the help though!
I had this occur on a machine with VS 2010 once before. For some reason, the System.Windows assembly was not found in the .NET tab of Add Reference window. Very strange.
In this case, you will just have to go to the Browse tab and navigate to:
C:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.Windows\
Once there, select the proper version subfolder (should look something like... v4.0_4.0.0.0__b03f5f7f11d50a3a
) and then choose the System.Windows.dll there.
Right click on your "References" folder and click "Add Reference" and then select System.Windows under the .NET tab.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With