我看到有针对性的的 project.json 的文件,使用的名称,如 netcore50 , DOTNET , dnx451 , net45 ,及其他。对于框架部分project.json 不会在文档(还)指定如何使用本节不同的框架。
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.
什么框架是可用的,应在使用什么名称的 project.json 的目标每?
What frameworks are available and what name should be used in project.json to target each?
推荐答案更新4
全部列表,请参阅docs.nuget/create/targetframeworks.
最常见的TFMs ASP.NET应用程序的开发人员需要知道的是:
The most common TFMs ASP.NET app developers need to know are:
- netcoreapp1.0 =为目标的应用程序的 .NET 1.0的核心
- netstandard1.x =该目标的库 .NET标准1.x中。 (例如 netstandard1.5 )。 .NET标准库可以在桌面上使用.NET,Windows Phone的,单声道,和其他人。
- net4xy = A库或控制台应用程序为目标的桌面 .NET框架4.xy (如 net452 或 net46 )
- 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)
更新3 有官方文档了。见docs.nuget/create/targetframeworks.
更新2 (2015年12月9日)
UPDATE 2 (Dec 9, 2015)
有点官方的文档现在可以从DOTNET。见.NET平台标准>的NuGet
Somewhat official docs are now available from dotnet. See .NET Platform Standard > Nuget
对于坚持.NET标准,这些TFMs(目标框架的绰号)是可用的。
For libraries targeting multiple platforms that adhere to the .NET Standard, these TFMs (target framework monikers) are available.
有关特定于平台的绰号,这些TFMs是可用的。
For platform-specific monikers, these TFMs are available.
源代码.NET平台标准>的NuGet
更新(2015年8月12日)
UPDATE (Aug 12, 2015)
此的NuGet博客帖子显示额外的TFM的可用的NuGet。这也解释了 DOTNET TFM。
This Nuget blog post shows additional TFM's available for nuget. It also explains the dotnet TFM.
原始响应
虽然这不是官方文档,这篇博客文章由奥伦诺沃提尼具有显示不同的目标框架的绰号(下图)一个优秀的表。
Although this is not official documentation, this blog post by Oren Novotny has an excellent table showing the different target framework monikers (image below).
更多推荐
哪些框架可在ASP.NET核心(ASP.NET 5)应用程序?
发布评论