Tag Archives: nuget

Update NuGet.exe

NuGet allows you to update third party packages, which you have referenced in your projects, but how do you update NuGet itself? After updating NuGet from the Package Manager, the old NuGet version will remain in the .nuget folder of your solution. In order to update the executable you have two options:

  • Delete the .nuget folder from both, the solution folder and from disk. Then you should restart Visual Studio. After restarting and opening the solution, you have to right-click on the solution node and select Enable NuGet package restore. This command will copy a new version of NuGet into your solution folder and reference it. The drawback is that if you did not backup the nuget.targets you will lose every modification that you did on this file.
  • open the command line, navigate to the .nuget folder and execute the following command:
    nuget.exe update -self

After completing one of both steps you should have that, the new version of NuGet got copied into the solution.

Leave a comment

Posted by on February 13, 2013 in Visual Studio


Tags: ,