2017-07-18 58 views
0

我正在爲一個項目使用單個分支管道,目前我正在收到此錯誤。Jenkins沒有發現GDIplus的依賴關係

[xUnit.net 00:00:03.0095238]  System.TypeInitializationException : The type initializer for 'System.DrawingCore.GDIPlus' threw an exception. 
[xUnit.net 00:00:03.0097048]  ---- System.DllNotFoundException : Unable to load DLL 'gdiplus.dll': The specified module could not be found. 

每當我在本地都通運行相同的單元測試,但是通過詹金斯打算當它是不能,因爲我不知道這是爲什麼這種行爲方式來加載,我茫然的Gdiplus.dll。有沒有人遇到類似的東西?我怎樣才能手動添加DLL?

回答

0

如果任何人有這個問題,解決這個問題的最好方法是將gdiplus安裝到您的docker容器中。然而,即使在安裝Docker容器之後,仍然會出現此錯誤,因爲Linus以其無限智慧正在尋找gdiplus.dll而不是libgdiplus.so,因此需要將其鏈接起來.........

這裏是哪裏我找到了解決辦法尋找

https://en.code-bude.net/2017/05/08/net-core-gdiplus-dll-not-found-in-linux/

小時後鏈路這是我使用的代碼,它是工作

的apt-get安裝-y libgdiplus \ & & cd/usr/lib ln -s libgdiplus.so gdiplus.dll

相關問題