开发者

missing system file System.Windows.Media what can i do? [duplicate]

开发者 https://www.devze.com 2023-02-15 20:10 出处:网络
This question already has answers here: Can't find System.Windows.Media namespace? (7 answers) Closed 9 years ago.
This question already has answers here: Can't find System.Windows.Media namespace? (7 answers) Closed 9 years ago. 开发者_JAVA百科

I'm trying to run a program that contains the line

using System.Windows.Media.Imaging;

but it give me this error

Error 1 The type or namespace name 'Media' does not exist in the namespace 'System.Windows' (are you missing an assembly reference?)

What can I do? Can I download it from somewhere?


Have you tried adding PresentationCore to your References? Bring up the Solution Explorer (Ctrl + W, S or choose the menu item View | Solution Explorer). Right click on the References node for you project and choose Add References. Look for PresentationCore in the .NET page of the Add References dialog. After you add that to your project, you will be able to add System.Windows.Media to your using statements.


You probably need to add PresentationCore.dll to your list of referenced assemblies.

0

精彩评论

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