[ACCEPTED]-Automatic Package Restore: Unable to find version of package-nuget-package-restore

Accepted answer
Score: 18

It was indeed being overridden by the global 2 NuGet.config file (C:\Users\UserName\AppData\Roaming\NuGet\NuGet.config). Restarting 1 Visual Studio seemed to clear it.

Score: 11

For some reason, my NuGet.config had nuget.org 4 key disabled. I checked the NuGet Package 3 Manger settings and everything was correct. Restarted 2 VS2013 and it worked. Here is my NuGet.config 1 that works:

<?xml version="1.0" encoding="utf-8"?>
 <configuration>
  <solution>
   <add key="disableSourceControlIntegration" value="true" />
  </solution>
 <packageRestore>
  <add key="enabled" value="True" />
  <add key="automatic" value="True" />
 </packageRestore>
 <packageSources>
   <add key="nuget.org" value="https://www.nuget.org/api/v2/" />
 </packageSources>
 <disabledPackageSources />
 <activePackageSource>
   <add key="Microsoft and .NET" value="https://www.nuget.org/api/v2/curated-feeds/microsoftdotnet/" />
 </activePackageSource>
</configuration>
Score: 1

Had the same error, in my case a nuget restore 1 command before building fixed it for me

More Related questions