I have a shiny new Asp.Net Core MVC App that references some older net45
libraries.
Works fine with Asp.Net Core RC1 on full net45 framework. Migrating from Asp.NET Core rc1 to rc2 I have hit an obstacle that I don't know how to fix.
The App is a ASP.NET Core App that using EF6, Autofac, Kendo.MVC and it needs to run on the full .Net 4.6 framework as there are references libraries that use WCF.
In migrating from rc1 to rc2 I first update the NuGet.config feed to point to https://www.myget.org/F/aspnetcirelease/api/v3/index.json
then I make the following changes to the project.json
- Remove "version" from the top most node
- Add the following attribute to the complationOptions object: "debugType": "portable"
- dependencies: change
AspNet
toAspNetCore
- dependencies: change all
rc1-final
, to*
- Check that
MVC
andMVC Tag Helpers
have been renamed from6.0
to1.0
- Remove all dependencies to
Application Insights
- Remove all dependencies for
Microsoft.AspNet.Tooling.Razor
- Add a dependency to
"Microsoft.NETCore.App": { "type": "platform", "version": "1.0.0-*" }
- Add a new content object:
"content": [ "wwwroot", "Views", "web.config", "appsettings.json" ]
- Update all using statements to reference
AspNetCore.*
instead ofAspNet.*
- Update all using statements to reference
I then replace the frameworks object with:
"frameworks": {
"netcoreapp1.0": {
"imports": [
"net45"
]
}
}
I do a dotnet restore
and everything resolves exceptfor 1 package:
error: Package Kendo.Mvc 2016.1.412 is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0). Package Kendo.Mvc 2016.1.412 supports:
error: - dnx451 (DNX,Version=v4.5.1)
error: - dnxcore50 (DNXCore,Version=v5.0)
error: One or more packages are incompatible with .NETCoreApp,Version=v1.0.
info : Committing restore...
Errors in project.json
Package Kendo.Mvc 2016.1.412 is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0). Package Kendo.Mvc 2016.1.412 supports:
- dnx451 (DNX,Version=v4.5.1)
- dnxcore50 (DNXCore,Version=v5.0)
One or more packages are incompatible with .NETCoreApp,Version=v1.0.
So, Kendo.MVC needs to reference net45
or net451
instead of dnx451
, but since this comes from a NuGet feed, I can't change this.
Do you know if there is a quick fix I can make instead of waiting for the next release of Kendo.MVC?