2017-02-24 85 views
3

我使用的是Ubuntu 16.04來構建和部署一個dotnet核心應用程序。現在我需要更新NuGet,因爲有些軟件包需要更新的nuget版本。自更新後出錯NuGet Ubuntu 16.04

的NuGet的版本,從資源庫安裝時(使用sudo apt-get的安裝的NuGet)是:2.8.7.0

然後我用的NuGet的自我更新能力,更新它:「須藤uget更新-自'。這個操作的輸出:

[email protected]:~$ sudo nuget update -self 
Checking for updates from https://www.nuget.org/api/v2/. 
Currently running NuGet.exe 2.8.7. 
Updating NuGet.exe to 3.5.0. 
Update successful. 

但是當我現在嘗試啓動的NuGet,我得到這個錯誤:

[email protected]:~$ nuget 
Could not load file or assembly or one of its dependencies. 
    Could not load file or assembly or one of its dependencies. 
    Could not load file or assembly or one of its dependencies. 
    Could not load file or assembly or one of its dependencies. 

沒有人有任何想法,如何找出來,就是我失蹤?我可以重現這一點(構建機器是一個VirtualBox),在另一個VM中,自我更新成功並且nuget仍在工作。

非常感謝提前!

回答

3

經過進一步探討,我偶然發現瞭解決方案。我還需要安裝單一完整的軟件包(在此之前似乎不需要)。 下面的命令解決了這個問題:

sudo apt-get install mono-complete 
+0

謝謝。解決了我的問題。 –