.NET Core and System.Drawing

前端 未结 5 1630
孤城傲影
孤城傲影 2020-12-01 07:53

I am trying to reference System.Drawing in a .net core console app targeting net46 but the assembly is not there. According to MS if you use dotnetcore System.Drawing is not

5条回答
  •  一整个雨季
    2020-12-01 08:34

    Add NuGet reference Microsoft.Windows.Compatibility

    Notice: mark "Include prerelease"

    Of course, it works only if prerelease packages are OK for you.

提交回复
热议问题