Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Package requires NuGet client version '2.12'

I am trying to install 'WindowsAzure.Storage 8.0.1' in visual studio 2012, but getting the error

package requires NuGet client version '2.12' or above, but the current NuGet version is '2.8.60318.667'.

on running command "Install-Package NuGet.Client"

Attempting to resolve dependency 'NuGet.Versioning (≥ 3.5.0)'. Attempting to resolve dependency 'NuGet.Packaging (≥ 3.5.0)'. Attempting to resolve dependency 'NuGet.Common (≥ 3.5.0)'. Attempting to resolve dependency 'NuGet.Packaging.Core (≥ 3.5.0)'. Attempting to resolve dependency 'NuGet.Packaging.Core.Types (≥ 3.5.0)'. Attempting to resolve dependency 'NuGet.Frameworks (≥ 3.5.0)'. Attempting to resolve dependency 'NuGet.Repositories (≥ 3.5.0)'. Attempting to resolve dependency 'NuGet.RuntimeModel (≥ 3.5.0)'. Attempting to resolve dependency 'Newtonsoft.Json (≥ 6.0.4)'. Attempting to resolve dependency 'NuGet.ContentModel (≥ 3.5.0)'. 'NuGet.Client 3.5.0' already installed. 

But still I am getting the error.

The 'WindowsAzure.Storage 8.0.1' package requires NuGet client version '2.12' or above, but the current NuGet version is '2.8.60318.667'.

like image 828
Usama Saeed Avatar asked Feb 11 '17 07:02

Usama Saeed


People also ask

How do I force a NuGet package to install?

Switch to the Browse tab, search for the package name, select it, then select Install). For all packages, delete the package folder, then run nuget install . For a single package, delete the package folder and use nuget install <id> to reinstall the same one.

What version of NuGet EXE do I have?

In Visual Studio, use the Help > About Microsoft Visual Studio command and look at the version displayed next to NuGet Package Manager. Alternatively, launch the Package Manager Console (Tools > NuGet Package Manager > Package Manager Console) and enter $host to see information about NuGet including the version.

What is NuGet client?

NuGet is the package manager for . NET. It enables developers to create, share, and consume useful . NET libraries. NuGet client tools provide the ability to produce and consume these libraries as "packages".


2 Answers

Update your NuGet Package Manager extension. Go to Tools->Extensions and Updates and select Updates->Visual Studio Gallery. Update the NuGet Package Manager extension. Then try to install the package after Visual Studio gets restarted.

like image 87
Mathivanan KP Avatar answered Sep 23 '22 21:09

Mathivanan KP


NuGet 2.12 only supports Visual Studio 2013 and later. If you're on Visual Studio 2012 you're out of luck.

like image 40
Ceribia Avatar answered Sep 25 '22 21:09

Ceribia