我注意到NuGet最近添加了对几个新的TFM的支持,这些TFM与.NET Core,包括:

  • netst和ard (1.0-1.5)
  • netst和ardapp (1.5)
  • netcoreapp (1.0)

据我所知,netst和ard是最好的.相当于便携式配置文件的净核心;它允许你使用一个名字来定位多个平台,而不是明确地列出你支持的每个平台,例如portable-net45+netcore45+wp81.

同时,根据this documentnetst和ardapp的说法,它更像是中的一个控制台应用程序.网芯;它代表着任何人都无法理解的东西.NET核心运行时(例如CoreCLR、CoreRT).

那么,netcoreapp到底应该是什么呢?我发现了它here,的跟踪问题,其中在底部有一条 comments ,有点解释了区别是什么,但我不明白两者之间有什么区别

NETSt和ard.库+应用程序主机

.NET核心基础安装

是.有人能给我解释一下吗?

推荐答案

这个NET标准库(netstandard)是跨应用程序模型的一致性库.NET Core(netcoreapp)运行在顶部.NET标准库,是一个AppModel.在GitHub页面上,他们回答了一个问题.NET标准应用程序是什么,它们的区别是什么.净芯(https://github.com/dotnet/corefx/blob/master/Documentation/architecture/net-standard-applications.md)和(https://github.com/dotnet/corefx/blob/master/Documentation/architecture/net-platform-standard.md)

UPDATE:.NETStandardapp已经过时.NETCore应用程序取代了它(https://github.com/NuGet/Home/issues/2524)

Q: What is a .NET Standard application?
A: A .NET Standard application is an application that can run on any .NET Core runtime: CoreCLR (current) and .NETNative (future). It can run on one of many .NET core platforms (Windows, OS X, and Linux). It relies on the host provided by the given runtime. It's a composable framework built from the packages on which the application depends. Its assembly loading policy permits newer versions of dependencies without any application configuration (for example, BindingRedirects are not required).

问:这和以前有什么不同.NETCore?A:是的.NETCore目标

Q: How is this different than .NETStandard?
A: The NETStandard target framework is an abstract target framework that represents API surface of many frameworks and platforms. As such NETStandard assemblies can run on any platform that supports the NETStandard targeted by that assembly, for example: .NET Desktop, Windows Phone, Universal Windows Platform applications, .NET Standard applications, etc. NETStandardApplication is a concrete target framework that represents a single platform with both API surface and implementation. .NET standard applications are runnable on their own. .NETStandard libraries must be published-for or consumed-by a specific concrete target framework to be used in that type of application.

Overview of .NET Future innovation

.net相关问答推荐

Long.MaxValue从Single到Long的转换导致溢出异常

删除数据库项目中的表

使用CLR将数据从Excel导入SQL Server时出错

为什么 .NET 中的 System.Version 定义为 Major.Minor.Build.Revision?

我在哪里可以获得线程安全的 CollectionView?

value 的默认参数必须是编译时间常数?

如何 Select 数据表中列的最小值和最大值?

我可以从 .NET/C# 获取其他进程的命令行参数吗?

如何删除只读文件?

我什么时候应该在 C# 中使用使用块?

System.String.Copy 在 .NET 中有什么用?

如何在可取消的异步/等待中处理 TransactionScope?

有没有办法从方法返回匿名类型?

.NET 中的对象引用有多大?

实体框架中的 POCO 是什么?

如何找到二维数组的大小?

使用 lambda 表达式代替 IComparer 参数

MailMessage,Sender 和 From 属性的区别

如何将 VB 项目转换为 C# 项目

WPF中的依赖属性和附加属性有什么区别?