How do I upgrade Nuget Package Restore?

Topics: General
May 17, 2013 at 6:26 AM
I created a solution in VS2012 when I had NuGet 2.2 installed. I right-clicked the solution in Solution Explorer and selected "Enabled Nuget Package Restore" from the context menu. This added a .nuget folder to my solution with nuget.exe and nuget.targets within.

I've since installed NuGet 2.5 but the nuget.exe and nuget.targets in my solution are still v2.2.

I know I can open a command prompt and run "nuget.exe update self" to update the exe but how do I update the nuget.targets file to 2.5?

Maybe there should be an "Upgrade Nuget Package Restore" item on the solution's context menu?
May 20, 2013 at 7:32 PM
Unfortunately, there's not an obvious way to do that. What you can do is delete the whole '.nuget' folder, and rerun "Enable Package Restore".