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.
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.
Update: The recently released NuGet 2.0 also may require uninstalling an older version of NuGet first.
From the NuGet 2.0 Release Notes: (http://docs.nuget.org/docs/release-notes/nuget-2.0)
Known Installation Issue
If you are running VS 2010 SP1, you might run into an installation error when attempting to upgrade NuGet if you have an older version installed.
The workaround is to simply uninstall NuGet and then install it from the VS Extension Gallery. See http://support.microsoft.com/kb/2581019 for more information, or to go directly to the VS hotfix.
Note: If Visual Studio won't allow you to uninstall the extension (the Uninstall button is disabled), then you likely need to restart Visual Studio using "Run as Administrator."
Here is the VisualStudio/Express hotfix for this issue... http://connect.microsoft.com/VisualStudio/Downloads/DownloadDetails.aspx?DownloadID=38654
There's not much on the page describing what it's for, but it's linked to from here that does provide some description... http://connect.microsoft.com/VisualStudio/Downloads
I have installed this hotfix on both the Professional (on Win 7 Pro 32 bit) and Express versions (on Windows 7 Ultimate 64 bit) and the NuGet update behaves as it should.
When i originally had the problem, Joe Doyle's answer solved it.
However, going to version 1.8, I cannot see a listing for nuget in Programs and Features
.
So from within Visual Studio / Tools / Extension Manager
.
Uninstalled NUGET.
Restarted VS
Return to the Extension manager and install NUGET.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With