net core System.Drawing is not supported on this platform.
程序员文章站
2022-07-02 09:32:02
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生成有问题
这个dll文件正常是600kb的,每次生成都会把这个小文件的dll打出来.
替换一下就行...去自己的包源找一下
上一篇: 如何通过java获取文件名和扩展名
推荐阅读
-
asp.net core 3.0 JObject The collection type 'Newtonsoft.Json.Linq.JObject' is not supported
-
[译]如何在.NET Core中使用System.Drawing?
-
net core System.Drawing is not supported on this platform.
-
asp.net core 3.0 JObject The collection type 'Newtonsoft.Json.Linq.JObject' is not supported
-
[译]如何在.NET Core中使用System.Drawing?
-
net core System.Drawing is not supported on this platform.