NETCore 项目部署报错: “The type initializer for ‘Gdip‘ threw an exception”概述
asp .net core 项目 部署在docker中,文件导出使用了System.Drawing.Common包,在容器中使用时报错“The type initializer for ‘Gdip’ threw an exception.” 排查了一下,发现是docker容器中 System.Drawing.Common Gdiplus 相关依赖缺失的缘故。