开发者

I am unable to add a reference to System.Windows.Media in my .net 3.5 project

开发者 https://www.devze.com 2023-04-09 09:47 出处:网络
I\'m using VS 2008, with .net 3.5. I need access to System.Windows.开发者_JAVA技巧Media.Color, but when I try to \"Add Reference...\", System.Windows.Media is not listed.

I'm using VS 2008, with .net 3.5. I need access to System.Windows.开发者_JAVA技巧Media.Color, but when I try to "Add Reference...", System.Windows.Media is not listed.

I'm not sure where to go next since the MSDN documentation seems to think I should have access to it by default, and doesn't give any additional information on how to include it.

Just adding "using System.Windows.Media" turns up an error saying I'm probably missing a reference.


See this link: http://msdn.microsoft.com/en-us/library/system.windows.media.color.aspx

It's in the PresentationCore.dll. (Look at the very top of the page).

Namespaces aren't always in individual .dll files, a lot of times they are bundled as a larger dll like this.


Add PresentationCore, which you should find under the .NET tab of Add Reference dialog box.

0

精彩评论

暂无评论...
验证码 换一张
取 消