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.
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