Nuget error

mark.garcia's Avatar

mark.garcia

27 Jul, 2015 03:11 AM

error : The 'Microsoft.Net.Http 2.2.29' package requires NuGet client version '2.8.1' or above, but the current NuGet version is '2.7.40906.75'.

  1. mark.garcia closed this discussion on 27 Jul, 2015 03:16 AM.

  2. Feodor Fitsner re-opened this discussion on 27 Jul, 2015 03:17 AM

  3. Support Staff 1 Posted by Feodor Fitsner on 27 Jul, 2015 03:17 AM

    Feodor Fitsner's Avatar

    Is it nuget.exe inside your project's .nuget directory?

    nuget 2.8.5 is installed on AppVeyor build workers and available in PATH.

  4. 2 Posted by Tom Carver on 07 Jan, 2016 02:45 PM

    Tom Carver's Avatar

    I'm getting an equivalent error for a different version of NuGet. Is there any way to run v3.0 of the NuGet client on our AppVeyor instance? "The 'System.Linq 4.0.0' package requires NuGet client version '3.0' or above, but the current NuGet version is '2.8.50926.602'."

  5. Support Staff 3 Posted by Feodor Fitsner on 07 Jan, 2016 05:56 PM

    Feodor Fitsner's Avatar

    Looking at the version of nuget in error I think it's nuget.exe from your .nuget solution folder. Because on build workers there is latest nuget 2.8.6.x installed. Update your nuget.exe or delete it from that folder.

  6. 4 Posted by Tom Carver on 08 Jan, 2016 08:57 AM

    Tom Carver's Avatar

    Hi,

    Thanks for the reply! Turns out we did have a copy of Nuget.exe checked in,
    apologies for not having already checked that.

    Side note: Nuget 2.8.6 isn't the latest, 3.3 is available but can't (AFAIK)
    be directly downloaded, you have to start with an old version then run
    "nuget update -self"

  7. Support Staff 5 Posted by Feodor Fitsner on 08 Jan, 2016 06:51 PM

    Feodor Fitsner's Avatar

    3.3 is default one on Visual Studio 2015 build workers. Pushing 3.x to VS 2013 could break a lot of builds - that's why 2.8.x is default version there.

    You can easily replace nuget with 3.x by running this PS instead:

    (New-Object Net.WebClient).DownloadFile('https://dist.nuget.org/win-x86-commandline/v3.3.0/nuget.exe, "C:\Tools\nuget\nuget.exe")
    

    Downloads are here: https://dist.nuget.org/index.html

  8. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:03 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac