.net core部署在CentOS上时关于使用GDI报错的问题

 一运行到gdi相关的代码时,就报如上图片所示的错误。

关于这个的解决办法,其实是需要在centos上安装libgdiplus

首先,搜索libgdiplus

yum whatprovides libgdiplus

然后执行命令安装即可

yum install libgdiplus
原文地址:https://www.cnblogs.com/shapman/p/12725743.html