Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to upgrade nuget with Visual Studio Express 2012

While installing this package Microsoft.Net.Http via Nuget console I got this error:

Install-Package : The 'Microsoft.Net.Http 2.2.28' package requires NuGet client version '2.8.1' or above, but the current NuGet version is '2.6.40627.9000'. 
  • Please How can I upgrade my Nuget to version 2.8.1?

I Cant find anything easily on google.

like image 597
eeadev Avatar asked Dec 09 '14 17:12

eeadev


People also ask

How do I update NuGet to latest version?

Right-click the Packages folder in the project, and select Update. This will update the NuGet package to the latest version. You can double-click the Add packages and choose the specific version.

Can't update NuGet packages?

Open NuGet Package Manager, go to the package, and uninstall (it should show the new version that you modified the packages. config file to). In NuGet Package Manager, go to the browse tab, find the package you just uninstalled, then install it again.


2 Answers

To update NuGet in Visual Studio to the latest version you can use the Extensions Manager.

  1. From the Tools menu select Extensions and Updates.
  2. Then in the dialog that opens select the Updates tab.
  3. Then select Visual Studio Gallery.
  4. Select NuGet Package Manager for Visual Studio and click the Update button.

If you want to install NuGet 2.8.1 you can download the Visual Studio installer (VSIX) from NuGet's CodePlex web site

like image 157
Matt Ward Avatar answered Oct 13 '22 09:10

Matt Ward


enter image description here

Go to the Manage NuGet Packages and click Update button

like image 24
Md Shahriar Avatar answered Oct 13 '22 11:10

Md Shahriar