[ACCEPTED]-Automatic Package Restore: Unable to find version of package-nuget-package-restore
Accepted answer
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.
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>
Had the same error, in my case a nuget restore 1 command before building fixed it for me
Source:
stackoverflow.com
More Related questions
Cookie Warning
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.