While opening a solution that another developer (or ten) had worked on earlier, I came across this friendly NuGet error:
Package restore is disabled by default. To give consent, open the Visual Studio Options dialog, click on Package Manager node and check ‘Allow NuGet to download missing packages during build.’ You can also give consent by setting the environment variable ‘EnableNuGetPackageRestore’ to ‘true’.
As I delved into Tools -> Options – Package Manager to set the required setting, I saw that it was already set.
After some StackOverflowing, I saw that a workaround for this was to set an environment variable. To do this in Windows 8, I went to Control Panel – System – Advanced and clicked on the “Environment Variables” button. I added a new system variable called “EnableNuGetPackageRestore”, and set its value to “true”.
After doing this, it still didn’t work. I found that I needed to close and reopen Visual Studio in order for the change to take effect.