.NET核心版本号

时间:2017-04-25 19:47:28

标签: .net-core

我安装了.NET Core,我对我看到的版本号感到有些困惑。当我运行dotnet命令时,我得到了这个输出:

Microsoft .NET Core Shared Framework Host

  Version  : 1.1.0
  Build    : 928f77c4bc3f49d892459992fb6e1d5542cb5e86

Usage: dotnet [common-options] [[options] path-to-application]

Common Options:
  --help                           Display .NET Core Shared Framework Host help.
  --version                        Display .NET Core Shared Framework Host version.

Options:
  --fx-version            Version of the installed Shared Framework to use to run the application.
  --additionalprobingpath    Path containing probing policy and assemblies to probe for.

Path to Application:
  The path to a .NET Core managed application, dll or exe file to execute.

If you are debugging the Shared Framework Host, set 'COREHOST_TRACE' to '1' in your environment.

To get started on developing applications for .NET Core, install the SDK from:
  http://go.microsoft.com/fwlink/?LinkID=798306&clcid=0x409

这告诉我我有.NET Core v1.1.0,这是我根据我安装的内容预期的。

但是,如果我然后运行dotnet --version,它会告诉我我有版本1.0.1。为什么会出现差异?这两个版本号有什么区别?

1 个答案:

答案 0 :(得分:3)

  • 1.0.1是.NET Core SDK版本
  • 1.1.1是.NET Core运行时版本

参见相关的SO问题.Net Core Version Confusion on Installer