2017-10-13 94 views
1

我在Fedora 26下使用MonoDevelop GUI 5.10 Build 871。當我嘗試通過Nuget GUI添加到項目Reactive Extensions,我得到添加一些Nuget包給出錯誤

Adding System.Reactive.Core... 
The 'System.Reactive.Core 3.1.1' package requires NuGet client version '2.12' or above, but the current NuGet version is '2.8.7.0'. 

我該如何解決這個問題?

編輯:

如果我嘗試的NuGet添加到命令行中,有兩個問題,如下所示:

  1. 我似乎得到的是安裝在MonoDevelop的GUI
  2. 同一版本
  3. 最後我得到一個奇怪的錯誤。

輸出

[[email protected] Debug]$ sudo nuget update -self 
[sudo] password for idf: 
sudo: nuget: command not found 
[[email protected] Debug]$ nuget update -self 
bash: nuget: command not found... 
Install package 'nuget' to provide command 'nuget'? [N/y] y 


* Waiting in queue... 
* Loading list of packages.... 
The following packages have to be installed: 
nuget-2.8.7-3.fc26.x86_64 Package manager for .Net/Mono development platform 
Proceed with changes? [N/y] y 


* Waiting in queue... 
* Waiting for authentication... 
* Waiting in queue... 
* Downloading packages... 
* Requesting data... 
* Testing changes... 
* Installing packages... 
Checking for updates from https://www.nuget.org/api/v2/. 
Error: TrustFailure (Ssl error:1000007d:SSL routines:OPENSSL_internal:CERTIFICATE_VERIFY_FAILED) 

[[email protected] Debug]$ 
+1

https://blog.lextudio.com/status-of-monodevelop-xamarin-studio-253da80d022c不要再使用MonoDevelop 5.x。 –

+0

太棒了。我能夠安裝MD 7.x並通過以下鏈接添加nuget包:https://github.com/cra0zy/monodevelop-run-installer – Ivan

回答

1

更新您的NuGet版本。

nuget update -self 

更新軟件包最新的可用版本。 該命令也更新NuGet.exe本身。

注意:您可能必須使用sudo,具體取決於它最初的安裝方式。

+0

請參閱OP中的「編輯」部分。 – Ivan

+0

@Ivan你安裝了哪個版本的Mono?假設「舊」作爲新版本通過Google的boringSSL支持TLS1.2。您可以手動下載並替換您的'nuget.exe'(https://www.nuget.org/downloads) – SushiHangover