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 ,之后在镜像中创建软链接

posted @ 2018-05-07 11:06  heilyyan  阅读(326)  评论(0)    收藏  举报