Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

.net

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?

like image 469
emykindman Avatar asked Mar 08 '11 23:03

emykindman


2 Answers

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.

like image 71
TYeeTY Avatar answered Nov 24 '22 17:11

TYeeTY


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

like image 33
500 - Internal Server Error Avatar answered Nov 24 '22 19:11

500 - Internal Server Error