sam
軟體就像做愛。一次犯錯,你需要用剩下的一生來彌補。
2019年2月22日 星期五
Ubuntu 執行後出現錯誤訊息 The type initializer for 'Gdip' threw an exception. 錯誤訊息的解決方法
最近安裝了 nuget 的 NPOI 來處理 excel 檔案
在 Ubuntu 的 Linux 環境發生了 The type initializer for 'Gdip' threw an exception. 的錯誤訊息
執行 sudo ln -s /lib/x86_64-linux-gnu/libdl.so.2 /lib/x86_64-linux-gnu/libdl.so
執行完畢,就能解決這個問題。
怎樣判斷 .NET Core (包含 ASP.NET Core)是 Debug 或 Release ?
用 JustDecompile 可以看到 DLL 的資訊
下面是 Debug 版本的資訊 :
下面是 Release 版本的資訊 :
這樣我們可以用下面的程式碼,判斷 DLL 是否為 Debug 版本。
較新的文章
較舊的文章
首頁
訂閱:
文章 (Atom)
Visual Studio 2017/2019 推薦的擴充功能與更新
參考文章: 覺得 Google 的 Blogger 不太順手?透過 HTML 的 iframe 移花接木 HackMD