natemcmaster natemcmaster - 3 months ago 7
ASP.NET (C#) Question

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

I have seen various frameworks targeted in project.json files, using names such as

netcore50
,
dotnet
,
dnx451
,
net45
, and others. The documentation for the "framework" section project.json does not (yet) specify how to use this section for different frameworks.

What frameworks are available and what name should be used in project.json to target each?

Answer

UPDATE 4

Full list see http://docs.nuget.org/create/targetframeworks.

The most common TFMs ASP.NET app developers need to know are:

  • netcoreapp1.0 = An application that targets .NET Core 1.0
  • netstandard1.x = A library that targets .NET Standard 1.x. (e.g. netstandard1.5). .NET Standard libraries can work on desktop .NET, Windows Phone, Mono, and others.
  • net4xy = A library or console app that targets desktop .NET Framework 4.x.y (e.g. net452 or net46)

UPDATE 3 There is official documentation now. See http://docs.nuget.org/create/targetframeworks.

UPDATE 2 (Dec 9, 2015)

Somewhat official docs are now available from dotnet. See .NET Platform Standard > Nuget

For libraries targeting multiple platforms that adhere to the .NET Standard, these TFMs (target framework monikers) are available.

standard .net

For platform-specific monikers, these TFMs are available.

tfms

Source .NET Platform Standard > Nuget

UPDATE (Aug 12, 2015)

This Nuget blog post shows additional TFM's available for nuget. It also explains the dotnet TFM.

nuget

Original response

Although this is not official documentation, this blog post by Oren Novotny has an excellent table showing the different target framework monikers (image below). Oren

Comments