Cannot find Bitmap Class in Class Library (.NET Standard)

前端 未结 2 1928
粉色の甜心
粉色の甜心 2020-12-02 01:36

I want to make a Class Library (.NET Standard) and I\'m using System.Drawing, but I get the error:

CS0246 C# The type or namespace name \'Bitmap\' could         


        
2条回答
  •  情书的邮戳
    2020-12-02 02:09

    Update

    As of last month (May 2018), Microsoft have a production release (previously it was preview/RC) of System.Drawing.Common, a NuGet package which supersedes both versions of the CoreCompat.System.Drawing package. This should be used going forwards.


    For now you can use the CoreCompat.System.Drawing nuget package.

    We've been using it in production code for a few months (drawing on video screencaps) and it has been working great. It's basically a slot-in replacement for System.Drawing.

提交回复
热议问题