'Bitmap' could not be found (are you missing a using directive or an assembly reference?)

Viewed 59308

I am getting the following compile-time error:

The type or namespace name 'Bitmap' could not be found (are you missing a using directive or an assembly reference?)

Here is my code:

BitmapImage img = new BitmapImage();
4 Answers

Today (2020 year) it's nuGet package System.Drawing.Common.dll. To add it: right click on project name (at solution explorer) --> "Manage NuGet packages" --> choose "Browse" label at the top --> search for "System.Drawing.Common" --> install it.

Related