net core System.Drawing is not supported on this platform.

System.Drawing is not supported on this platform.
System.PlatformNotSupportedException: System.Drawing is not supported on this platform.
   at System.Drawing.Bitmap..ctor(Int32 width, Int32 height)
   at M10008.CaSignMiniPro.Shared.ValidateCode.CreateValidateGraphic(String validateCode, Int32 fontSize, Int32 lineHeight) in E:\11code\11casignMinipro\M10008.CaSignMiniPro\Shared\Tools\ValidateCode.cs:line 49
   at M10008.CaSignMiniPro.Application.BasicApplication.CreateImgCode() in E:\11code\11casignMinipro\M10008.CaSignMiniPro\Application\BasicApplication.cs:line 89
   at M10008.CaSignMiniPro.Service.BasicService.ImgCode() in E:\11code\11casignMinipro\M10008.CaSignMiniPro\Service\BasicService.cs:line 221

 

 

net core publish 发布命令的时候 

System.Drawing.common.dll生成有问题
net core  System.Drawing is not supported on this platform.

 

 这个dll文件正常是600kb的,每次生成都会把这个小文件的dll打出来.

 

替换一下就行...去自己的包源找一下

 

net core  System.Drawing is not supported on this platform.

 

 

 

 

 

 

net core System.Drawing is not supported on this platform.

上一篇:装机前查看电脑windows正版序列号方法


下一篇:Win10中CUDA、cuDNN的安装与卸载