2017-10-13 93 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