I am trying to use System.Drawing.Bitmap
from a .NET Core 3.1 library.
According to docs https://learn.microsoft.com/en-us/dotnet/api/system.drawing.bitmap?view=dotnet-plat-ext-3.1 the type is available in the version 3.
When I try to build the library using Bitmap
I got the error:
error CS1069: The type name 'Bitmap' could not be found in the namespace 'System.Drawing'.
This type has been forwarded to assembly 'System.Drawing.Common, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'
Consider adding a reference to that assembly
How can I create a .NET Core 3 class library using that type?
OBS: Using that type from a .NET Core WinForms work without any problem. (and there is no need to reference the nuget System.Drawing.Common since the type is already in the SDK).