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


i have followed steps upgrade beta 4 beta 5:

  • installed visual studio 2015 rtm
  • from powershell run: $env:dnx_feed="https://www.nuget.org/api/v2"
  • from powershell run: dnvm upgrade
  • changed global.json file:

    {     "projects": [ "src", "test" ],     "sdk": {         "version": "1.0.0-beta5",         "runtime": "coreclr",         "architecture": "x86"     } 

    }

  • updated packages in project.json beta 5:

    "dependencies": {         "entityframework.sqlserver": "7.0.0-beta5",         "entityframework.commands": "7.0.0-beta5",         "microsoft.aspnet.mvc": "6.0.0-beta5",         "microsoft.aspnet.mvc.taghelpers": "6.0.0-beta5",         "microsoft.aspnet.authentication.cookies": "1.0.0-beta5",         "microsoft.aspnet.authentication.facebook": "1.0.0-beta5",         "microsoft.aspnet.authentication.google": "1.0.0-beta5",         "microsoft.aspnet.authentication.microsoftaccount": "1.0.0-beta5",         "microsoft.aspnet.authentication.twitter": "1.0.0-beta5",         "microsoft.aspnet.diagnostics": "1.0.0-beta5",         "microsoft.aspnet.diagnostics.entity": "7.0.0-beta5",         "microsoft.aspnet.identity.entityframework": "3.0.0-beta5",         "microsoft.aspnet.server.iis": "1.0.0-beta5",         "microsoft.aspnet.server.weblistener": "1.0.0-beta5",         "microsoft.aspnet.staticfiles": "1.0.0-beta5",         "microsoft.aspnet.tooling.razor": "1.0.0-beta5",         "microsoft.framework.configuration": "1.0.0-beta5",         "microsoft.framework.configuration.json": "1.0.0-beta5",         "microsoft.framework.configurationmodel.usersecrets": "1.0.0-beta5",         "microsoft.framework.codegenerators.mvc": "1.0.0-beta5",         "microsoft.framework.logging": "1.0.0-beta5",         "microsoft.framework.logging.console": "1.0.0-beta5",         "microsoft.visualstudio.web.browserlink.loader": "14.0.0-beta5",         "system.io.filesystem.primitives" : "4.0.0-beta-23019",         "system.io.filesystem": "4.0.0-beta-23019",         "microsoft.aspnet.session": "1.0.0-beta5"     },  "commands": {     "web": "microsoft.aspnet.hosting --config hosting.ini",     "ef": "entityframework.commands" },  "frameworks": {     "dnx451": { },     "dnxcore50": { } },  "exclude": [     "wwwroot",     "node_modules",     "bower_components" ], "publishexclude": [     "node_modules",     "bower_components",     "**.xproj",     "**.user",     "**.vspscc" ], "scripts": {     "prepublish": [ "npm install", "bower install", "gulp clean", "gulp min" ] } 

    }

after of , few changes in code when run nuget package restore packages not restored , project.lock.json have old beta4 paths. see picture attached.

error

how force project.lock.json update?

here nuget.config %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>

probably nuget.config file (either @ solution level or global) pointing @ wrong nuget feeds.

the project.json.lock file updated when dnu restore. if doesn't work, delete file , run dnu restore.


Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -