Understanding versions of .NET Core and Entity Framework

asp.net asp.net-core c# entity-framework entity-framework-core

Question

I can't understand difference between lot of ASP.NET Core framework names: - dnxcore50 - dotnet5.4 - netcoreapp

dotnet5.4 is a new name for dnxcore50?

I create Class Library project and there is dotent5.4 in project.json. Then I create empty ASP.NET project an dthere is dnxcore50.

I add dependency to Microsoft.EntityFrameworkCore 1.0.0 to project and get error:

The dependency Microsoft.EntityFrameworkCore does not support for framework NETPlatform, Version=v5.4

What is the correct framework version and Entity Framework version?

1
3
9/11/2016 3:35:22 PM

Accepted Answer

You can avoid so many issues if you use the latest tools and frameworks.

Here is the link : Visual Studio 2015 Update 3 and .NET Core 1.0

enter image description here

What are the Target Framework Monikers (TFMs) ?

The Target Framework Monikers are IDs of the type framework+version that you can target from your apps in .NET Core and ASP.NET Core.

As examples, you can use:

– “netcoreapp1.0” For .NET Core 1.0

– “net45”, “net451”, “net452”, “net46”, “net461” for .NET Framework versions

– “portable-net45+win8” for PCL profiles

– “dotnet5.6”, “dnxcore50” and others, for older .NET Core preview versions (Before .NET Core 1.0 RTM and .NET Core RC2 were released)

– “netstandard1.2”, “netstandard1.5”, etc. for .NET Standard Platform monikers.

The table below defines some examples of the latest frameworks (as of late June 2016) that you can use and how they are referred to and which version of the .NET Standard Library they implement :

enter image description here

You can read about it here : Running .NET Core apps on multiple frameworks and (TFMs)

5
9/11/2016 4:05:17 PM

Popular Answer

Update your project.json as per current NuGet identifiers.

For version understanding, refer this-

enter image description here

For Entity Framework refer this - https://docs.efproject.net/en/latest/efcore-vs-ef6/choosing.html

Reference: https://github.com/dotnet/corefx/blob/master/Documentation/architecture/net-platform-standard.md#deprecated-monikers



Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow