Netcore The following error occurred using System.Drawing:
Unhandled Exception:System.TypeInitializationException:The type initializer for 'Gdip'Threw an exception. ---> System.DllNotFoundException:Unable to load DLL'Libgdiplus': The specified module could not being found. At System.Runtime.InteropServices.FunctionWrapper '1. Get_delegate () at System.Drawing.SafeNativeMethods.Gdip.GdiplusStartup (IntPtr& token, startupinput& input, startupoutput&output) at System.Drawing.SafeNativeMethods.Gdip. Cctor ()---End of inner exception stack trace---at System.Drawing.SafeNativeMethods.Gdip.GdipLoadImageFromFile (String filename, IntPtr&image) at System.Drawing.Image.FromFile (String filename, Boolean useembeddedcolormanagement) at System.Drawing.Im Age. FromFile (String filename)
The same problem https://github.com/dotnet/corefx/issues/25157
Workaround: https://q.cnblogs.com/q/103863/
System.DllNotFoundException:Unable to load DLL ' libgdiplus ': The specified module could not being found.