惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

T
The Blog of Author Tim Ferriss
Hugging Face - Blog
Hugging Face - Blog
F
Fortinet All Blogs
B
Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Microsoft Security Blog
Microsoft Security Blog
Blog — PlanetScale
Blog — PlanetScale
月光博客
月光博客
腾讯CDC
小众软件
小众软件
G
Google Developers Blog
V
Visual Studio Blog
罗磊的独立博客
GbyAI
GbyAI
V
V2EX
大猫的无限游戏
大猫的无限游戏
H
Help Net Security
L
LangChain Blog
Engineering at Meta
Engineering at Meta
量子位
The GitHub Blog
The GitHub Blog
博客园 - 司徒正美
WordPress大学
WordPress大学
B
Blog RSS Feed

博客园 - stone8386

微信调试工具,内网穿透工具,Localtunnel 使用 BackgroundService 创建 Windows 服务 centos8在更新yum源时提示失败 错误:为 repo ‘AppStream’下载元数据失败 c# 连接 sql server 数据库时报错,证书链是由不受信任的颁发机构颁发的。 锐浪报表 手工注册发布软件 - C/S报表开发 免COM DLL注册发布(绿色发布) - C/S报表开发 net 6 使用 加密sqlite 如何修复identity 2的默认登录路由中的错误 docker 启动 redis集群 android studio 生成 keystore 命令 identityserver4 对接钉钉 centos yum install 找不到软件包 docker 挂载文件出错 docker 发布到私有docker registry docker 不能访问外网 centos 网卡状态 ngxin 配置ssl Install Docker Compose docker registry
在linux 或docker中使用 system.drawing.common
stone8386 · 2019-05-05 · via 博客园 - stone8386

在dockerfile 中添加

FROM microsoft/dotnet:2.1-aspnetcore-runtime
RUN apt-get update RUN apt-get install -y --no-install-recommends libgdiplus libc6-dev

为什么会找不到 libdl (libdl.so.2) 呢?是因为 System.Drawing.Common 是在 /usr/lib/x86_64-linux-gnu/ 这个路径中找的,而容器中 libdl.so.2 存在于 /lib/x86_64-linux-gnu/ 目录中,安装 libc6-dev 之后 /lib/x86_64-linux-gnu/ 中就有了 libdl.so.2 ,问题就解决了。

现在不需要 ln -s libgdiplus.so gdiplus.dll ,System.Drawing.Common 已经改了代码,直接加载 libgdiplus.so ,详见实现源码

解决方法是在 https://github.com/VahidN/EPPlus.Core/issues/40 的回复中发现的