使用DocxCore,生成word文档的时候,在文档里面插入图片,就一直报The type initializer for 'Gdip' threw an exception.这个异常,网上各种类似:
apt-get update &&
apt-get install libgdiplus libc6-dev -y &&
ln -s /usr/lib/libgdiplus.so /usr/lib/gdiplus.dll &&
ln -s /usr/lib/x86_64-linux-gnu/libdl.so /usr/lib/libdl.dll
这些都试过了,就是无效,有人遇到过同样的问题吗?求解答,谢谢
Docker Centos7 .net 5 The type initializer for 'Gdip' threw an exception