Reputation: 2667
I created a new file-system based web site in Visual Studio 2010. On property pages I've set to use .NET 4.0, but I cannot find System.Windows
in the Add Reference dialog. The only copy on my PC seems to be in this directory, but this is not a Silverlight project
C:\Program Files\Reference Assemblies\Microsoft\Framework\Silverlight\v4.0
I thought it might have something to do with the client profile vs full version, but I can't see where to specify that in a web site project.
What am I doing wrong?
Upvotes: 2
Views: 3818
Reputation: 10316
Not all namespaces have corresponding DLL file names used in the Add Reference dialog. System.Windows is one of these.
For example, System.Windows.Clipboard
is resident in the PresentationCore.dll, but System.Windows.SizeConverter
is in WindowsBase.dll. It all depends on the actual types you need to access.
Upvotes: 2
Reputation: 8281
System.Windows is the WPF base classes - you cant add that assembly to an ASP.NET site. You will need to change your application type to use it.
Upvotes: 1