System.Drawing Linux Centos7 The type initializer for 'Gdip' threw an exception

System.Drawing 在linux使用时提示异常 The type initializer for 'Gdip' threw an exception

解决方案:

yum install autoconf automake libtool
yum install freetype-devel fontconfig libXft-devel
yum install libjpeg-turbo-devel libpng-devel giflib-devel libtiff-devel libexif-devel
yum install glib2-devel cairo-devel
yum install libgdiplus

 

posted @ 2021-09-24 14:48  马永猛  阅读(176)  评论(0编辑  收藏  举报