EPPlus.Core 1.5.4 报错 Unable to load DLL 'libdl'"

作者回答并提供了如下解决方案:

Revert to v1.5.2 which uses CoreCompat.System.Drawing.v2 for now. v1.5.4 uses Microsoft's System.Drawing.Common library. It's in the preview phase right now.

Install-Package EPPlus.Core -Version 1.5.2

Also you need to install libgdiplus too.

For Ubuntu 16.04 and above:

    apt-get install libgdiplus

    cd /usr/lib

    ln -s libgdiplus.so gdiplus.dll

意思就是从1.5.4降低版本到1.5.2,并且docker镜像中还需要安装软件 libgdiplus ,之后在镜像中创建软链接

猜你喜欢

转载自www.cnblogs.com/rokeyyan/p/Abp_1.html