I will share my experiences from my introduction to Microsoft® ASP.NET Core MVC development efforts. Start date and time for this entry is: 20161211.23:35
ASP.NET Core is and cross-platform framework for building modern cloud-based internet connected applications, such as web apps, IoT apps, and mobile backends - and a Github repository is available here.As of today, it is under heavy development so, migrating from .NET Framework 5.0 (and lower) to .NET Core (6.0) is not straightforward. You have to rewrite your code... Your Models and Viewmodels won't change but, you need a fresh start on the controller and view sides...
Since the most recent version is not complete and even though it is noted that it is released as an RTM level package; there are a lot of bugs. I've lost reasonable time to figure out what was going on. If you follow my recommendations here, you won't.
First things first! Always keep a backup of your working "Project.json" file!
Even if you use nuget packages to update and restore your references, inconsistencies may occur between the project.json file and the downloaded references. The only way to resolve those issues is to restore from the previous version.Please take a look at the following when you have problems with package updates:
https://github.com/dotnet/cli/issues/2578
Start with DotNet.Core, then revert to .NET 4.5.1 as described here.
Be careful with NuGet package updates. After I followed above instructions everything was working like a charm. Then I noticed that there was an update for the "BundlerMinifier.Core" package (from version 2.0.238 to 2.0.306. I proceeded with the update and KABOOOMM! Ended up with the following error message:
error: Package BundlerMinifier.Core 2.0.306 is not compatible with net451 (.NETFramework,Version=v4.5.1). Package BundlerMinifier.Core 2.0.306 supports: netcoreapp1.0 (.NETCoreApp,Version=v1.0)
When I reverted to the older version the result did not change:
error: Package BundlerMinifier.Core 2.0.238 is not compatible with net451 (.NETFramework,Version=v4.5.1). Package BundlerMinifier.Core 2.0.238 supports: netcoreapp1.0 (.NETCoreApp,Version=v1.0)
Bottomline is that there is a loong long way for .Net Core to come to the stage. Full .NET support for packages is at least a year away... By the way: Using the "BuildBundlerMinifier" package, it seems everything is back to normal for now...