错误详情:
Unhandled exception. System.TypeInitializationException: The type initializer for 'Gdip' threw an exception.
---> System.DllNotFoundException: Unable to load DLL 'libgdiplus': The specified module could not be found.
原因:.
Net的System.Drawing.dll内部依赖了gdiplus.dll,Windows上操作系统自带,而Mac和linux系统不带。
解决:
安装mono-libgdiplus,ubuntu可以通过sudo apt-get install libgdiplus
解决。
brew install mono-libgdiplus