Closed dvlkv closed 7 years ago
Ignore that warning in VSCode or other editors. The compiled program works (tested and it produces the expected .xlsx file). v1.5.2
for netstandard2.0
uses CoreCompat.System.Drawing.**v2**
and not CoreCompat.System.Drawing
.
It's a compiler error. I can't ignore it. It worked while i was using netstandard1.6
preview
versions.CoreCompat.System.Drawing
, you should update them too. The new dependency for them is CoreCompat.System.Drawing.**v2**
.TreatWarningsAsErrors
.Fixed it clearing packages by this:
dotnet nuget locals all --clear
Thank you
[CS0012] The type 'Image' is defined in an assembly that is not referenced. You must add a reference to assembly 'CoreCompat.System.Drawing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'.
My Code is:
.csproj: