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

 

原文地址:https://www.cnblogs.com/heibai-ma/p/15330384.html