I usually work with Java and therefore have little experience with .Net. I have a working .Net Core app which I would like to upgrade to the newest Version of .Net Core. I'm still using VS2015 cause if I want to migrate the project for VS2017 I get tons of errors which I wasn't able to solve even after trying different attempts.
In theory I should just update the version in my global.json
. Then update the dependencies in the project.json
(and update them with NuGet). Then change all the deps in the code and it should be fine right? So what I'm I missing out here. I tried too long and feel very stupid and frustrated by now^^ Any help would be appreciated a lot :)
If I change the SDK version to "1.0.0-rc2-final" I get:
If I change it to "1.0.3" I get:
In C:\Program Files\dotnet\sdk i have installed the following SDK Versions:
- 1.0.0-preview2-003131
- 1.0.3
- 2.0.0-preview2-005905
My global.json:
{
"projects": [ "src", "test" ],
"sdk": {
"version": "1.0.3"
}
}
My project.json:
{
"userSecretsId": "aspnet5-WfW_Pay-c80bb5ad-ca9c-425b-9b06-db313f855797",
"version": "1.0.0-*",
"compilationOptions": {
"emitEntryPoint": true
},
"dependencies": {
"AutoMapper": "4.1.1",
"Microsoft.ApplicationInsights.AspNet": "1.0.0-rc1-update4",
"Microsoft.AspNet.Authentication.Cookies": "1.0.0-rc1-final",
"Microsoft.AspNet.Diagnostics.Entity": "7.0.0-rc1-final",
"Microsoft.AspNet.Identity.EntityFramework": "3.0.0-rc1-final",
"Microsoft.AspNet.IISPlatformHandler": "1.0.0-rc1-final",
"Microsoft.AspNet.Mvc": "6.0.0-rc1-final",
"Microsoft.AspNet.Mvc.TagHelpers": "6.0.0-rc1-final",
"Microsoft.AspNet.Server.Kestrel": "1.0.0-rc1-final",
"Microsoft.AspNet.StaticFiles": "1.0.0-rc1-final",
"Microsoft.AspNet.Tooling.Razor": "1.0.0-rc1-final",
"Microsoft.AspNet.WebApi.Client": "5.2.3",
"Microsoft.EntityFrameworkCore": "1.0.0-rc2-final",
"Microsoft.EntityFrameworkCore.SqlServer": "1.0.0-rc2-final",
"Microsoft.EntityFrameworkCore.Tools": "1.0.0-preview1-final",
"Microsoft.Extensions.CodeGenerators.Mvc": "1.0.0-rc1-final",
"Microsoft.Extensions.Configuration.FileProviderExtensions": "1.0.0-rc1-final",
"Microsoft.Extensions.Configuration.Json": "1.0.0-rc1-final",
"Microsoft.Extensions.Configuration.UserSecrets": "1.0.0-rc1-final",
"Microsoft.Extensions.Logging": "1.0.0-rc1-final",
"Microsoft.Extensions.Logging.Console": "1.0.0-rc1-final",
"Microsoft.Extensions.Logging.Debug": "1.0.0-rc1-final",
"Microsoft.VisualStudio.Web.BrowserLink.Loader": "14.0.0-rc1-final",
"Newtonsoft.Json": "8.0.1-beta3",
"xunit": "2.1.0",
"xunit.runner.dnx": "2.1.0-rc1-build204"
},
"commands": {
"web": "Microsoft.AspNet.Server.Kestrel",
"ef": "EntityFramework.Commands",
"test": "xunit.runner.dnx"
},
"frameworks": {
"dnx451": {
"dependencies": {
"Microsoft.ApplicationInsights.Web": "2.1.0",
"xunit.runner.visualstudio": "2.1.0"
}
},
"dnxcore50": {}
},
"exclude": [
"wwwroot",
"node_modules"
],
"publishExclude": [
"**.user",
"**.vspscc"
],
"scripts": {
"prepublish": [ "npm install", "bower install" ],
"prepare": [ "gulp clean", "gulp min" ]
},
"webroot": "wwwroot"
}
DNVM list: PS C:\Users\Dennis> dnvm list
Active Version Runtime Architecture Location Alias
------ ------- ------- ------------ -------- -----
1.0.0-beta8 clr x64 C:\Users\Dennis\.dnx\runtimes
1.0.0-beta8 clr x86 C:\Users\Dennis\.dnx\runtimes
1.0.0-beta8 coreclr x64 C:\Users\Dennis\.dnx\runtimes
1.0.0-beta8 coreclr x86 C:\Users\Dennis\.dnx\runtimes
1.0.0-rc1-final clr x86 C:\Users\Dennis\.dnx\runtimes
1.0.0-rc1-update2 clr x64 C:\Users\Dennis\.dnx\runtimes
1.0.0-rc1-update2 clr x86 C:\Users\Dennis\.dnx\runtimes default
Migration Logs:
First one: http://hashcookie.ch/dennis/UpgradeLog.htm
After some googling: http://hashcookie.ch/dennis/UpgradeLog3.htm
More googling: http://hashcookie.ch/dennis/UpgradeLog5.htm