添加一些Nuget包会产生错误

时间:2017-10-13 15:41:39

标签: nuget monodevelop

我在MonoDevelop GUI 5.10 Build 871下使用Fedora 26。当我尝试通过Reactive Extensions GUI添加到项目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. 输出

    [idf@localhost Debug]$ sudo nuget update -self
    [sudo] password for idf: 
    sudo: nuget: command not found
    [idf@localhost 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)
    
    [idf@localhost Debug]$ 
    

1 个答案:

答案 0 :(得分:1)

更新你的nuget版本。

nuget update -self
  

将软件包更新到最新版本。 此命令还会更新NuGet.exe本身。

注意:您可能必须使用sudo,具体取决于最初的安装方式。