NuGet – Updated Process for Package Restore

Recently I discovered that NuGet package restore has been dramatically simplified.

The NuGet team has provided the following document Migrating to Automatic Package Restore.

I will provide the abbreviated form of that document here.

The Previous Method Right click on your solution in visual studio choosing >> Enable package restore. This created a .NuGet folder containing the nuget.exe etc. Your .csproj or .vbproj files were modified with an tag containing a NuGet path.

This triggered automatic package restore upon a build of your solution. Thankfully, this is no longer necessary!

The New Method You do nothing. Unless you are building from the command line. If so simply run 'NuGet restore' before the rest of your build.