欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

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

程序员文章站 2022-03-10 19:52:38
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.