Dotnet Core与DotNetStandard

xze*_*bee 9 .net .net-core

我已经读过dotnetstandard是功能的一个子集.

我明白了.

dotnet framework full> dotnetstandard> dotnetcore

但是,例如Google API工作表如何支持dotnetcore与dotnetstandard v1.3?

我需要安装什么才能允许使用dotnetstandard 1.3的应用程序在dotnetcore下运行?

Sha*_*tin 13

Dotnet Core与DotNetStandard

这两者并非相互"对抗".相反,.NET Core"包含".NET标准库的实现(以及不在.NET Standard中的额外内容).这是维恩图.

在此输入图像描述

...如何使用例如google API表支持dotnetcore与dotnetstandard v1.3?

这是可能的,因为.NET Core 1.0支持.NET标准库的1.3版.

下面的表格,netcoreapp是.NET的核心,net是.NET Framework,并且netstandard是.NET标准库.正如您所写,.NET标准库是功能的子集.

重要提示:每个平台都会公布它支持的最高版本的.NET标准库.

netstandard     1.0     1.1     1.2     1.3     1.4     1.5     1.6     2.0
netcoreapp      ?       ?       ?       ?       ?       ?       1.0     2.0
net             ?       4.5     4.5.1   4.6     4.6.1   4.6.2   vNext   4.6.1
Run Code Online (Sandbox Code Playgroud)

以下是一些检查您的理解的示例.

  • .NET Core 1.0最多支持.NET Standard Library 1.6
  • .NET Framework 4.6.1最多支持.NET Standard Library 1.4

.NET Standarded Library 1.3受......支持

  • .NET Core 1.0和2.0
  • .NET Framework 4.6,4.6.1,4.6.2和vNext

...我需要安装什么来允许使用dotnetstandard 1.3的应用程序在dotnetcore下运行?

您必须安装.NET Core.