Radenko Zec
Radenko Zec

Reputation: 7669

Upgrading from ASP.NET 5 Beta 4 to Beta 5 - project.lock.json has old values

I have followed steps to upgrade from beta 4 to beta 5:

After all of this and few changes in code when I run NuGet package restore packages are not restored and my project.lock.json have old Beta4 paths. See the picture attached.

Error

How to force project.lock.json to update?

Here is NuGet.config from %AppData%/NuGet/NuGet.Config: <?xml version="1.0" encoding="utf-8"?> <configuration> <packageRestore> <add key="enabled" value="True" /> <add key="automatic" value="True" /> </packageRestore> <activePackageSource> <add key="nuget.org" value="https://www.nuget.org/api/v2/" /> </activePackageSource> <packageSources> <add key="nuget.org" value="https://www.nuget.org/api/v2/" /> <add key="AspNetVNext" value="https://www.myget.org/F/aspnetvnext/api/v2" /> <add key="NuGet" value="https://nuget.org/api/v2/" /> <add key="NightlyBuilds" value="https://www.myget.org/F/aspnetvnext/" /> </packageSources> </configuration>

Upvotes: 1

Views: 568

Answers (1)

Victor Hurdugaci
Victor Hurdugaci

Reputation: 28425

Probably your NuGet.config file (either at solution level or global) is pointing at the wrong NuGet feeds.

The project.json.lock file is updated when you do dnu restore. If that doesn't work, just delete the file and run dnu restore.

Upvotes: 2

Related Questions