How to reference .NET framework from ASP.NET Core

I have a ASP.NET MVC 5 / .NET 4.7 project that I want to upgrade to ASP.NET Core.

The MVC frontend references a service layer project (SL) which in its that uses a datalayer (DAL) project built using Entity Framework.

Our assessment is that Entity Framework Core is still missing features that we need and that we should not upgrade the DAL project to .NET Core.

What framework should my projects target to be able to work together? Can we upgrade just one project to .NET Core and keep the rest in .NET Framework?

Jon Skeet
people
quotationmark

What framework should my projects target to be able to work together? Can we upgrade just one project to .NET Core and keep the rest in .NET Framework?

You don't need to make any of your projects target .NET Core in order to use ASP.NET Core. I'd recommend using the .NET Core SDK (and associated csproj file format) but you can set the target framework to a desktop framework version (e.g. net47) and then you should be fine.

people

See more on this question at Stackoverflow