What frameworks are available in ASP.NET Core (ASP.NET 5) applications?

I saw various frameworks intended for project.json files using names like netcore50 , dotnet , dnx451 , net45 and others. The documentation for the "framework" section of project.json has not yet indicated how to use this section for different frameworks.

What frameworks are available and what name should be used in project.json for each of them?

+50
asp.net-core
Jun 10 '15 at 17:18
source share
2 answers

UPDATE 3

For a complete list, see Target Structures .

The most common TFM application developers that ASP.NET developers need to know are:

  • netcoreappx.y = Application targeting .NET Core xy (e.g. netcoreapp1.0 = .NET Core 1.0)
  • netstandardx.y = .NET Standard xy oriented library. (e.g. netstandard2.0 = .NET Standard 2.0). The standard .NET libraries can run on .NET desktop computers, Windows Phone, Mono, and others.
  • net4xy = library or console application designed for the .NET Framework 4.xy desktop (e.g. net452 or net46 )

UPDATE 2 (December 9, 2015)

Several white papers are now available from dotnet. See .NET Platform Standard -> Nuget

For libraries targeting multiple platforms that adhere to the .NET Standard , these TFMs (target frameworks) are available. ~ strike>

UPDATE (August 12, 2015)

This Nuget blog post shows additional TFMs available for nuget. He also explains dotnet TFM.

Original answer

Although this is not official documentation, this blog post from Oren Novotny has an excellent table showing the different target frames.

+66
Jun 10 '15 at 21:07
source share

Currently, there are only two three with support for any package.

.Net Framework 4.5.1 = dnx451 .Net Framework 4.5.2 = dnx452 .Net Core 5.0 = dnx50

The .NET Framework 4.6.0 (dnx46) will be released in the near future.

However, it depends on what you mean by "affordable." Anyone could release a new framework that they wanted this cat to get out of the bag. However, by default, dnu uses project.json to search for dependencies by watching the main channel on nuget.org. These are currently the only dnx structure dependencies on nuget.org.

For example, see the microsoft.aspnet.mvc nuget page: https://www.nuget.org/packages/Microsoft.AspNet.Mvc/6.0.0-beta4

 Dependencies DNX 4.5.1 Microsoft.AspNet.Authorization (≥ 1.0.0-beta4) Microsoft.AspNet.Cors (≥ 1.0.0-beta4) Microsoft.AspNet.Mvc.Razor (≥ 6.0.0-beta4) Microsoft.Framework.Caching.Memory (≥ 1.0.0-beta4) DNXCore 5.0 Microsoft.AspNet.Authorization (≥ 1.0.0-beta4) Microsoft.AspNet.Cors (≥ 1.0.0-beta4) Microsoft.AspNet.Mvc.Razor (≥ 6.0.0-beta4) Microsoft.Framework.Caching.Memory (≥ 1.0.0-beta4) 

Edit: in the early beta versions, there were also aspnet50 and aspnetcore50, but they are deprecated and should be replaced with dnx451 and dnxcore50 respectively.

+1
Jun 10 '15 at 20:34
source share



All Articles