[英]How do I know if I have DotNet Core 1.1?
I've downloaded the SDK from https://dot.net , where I change the UI to "Current" and click on "x64", and it downloads dotnet-dev-win-x64.1.0.0-preview2-1-003177.exe, which I then executed. 我已经从https://dot.net下载了SDK,在其中将UI更改为“当前”并单击“ x64”,然后下载了dotnet-dev-win-x64.1.0.0-preview2-1- 003177.exe,然后执行。
Then at command prompt "dotnet --version" reports: 1.0.0-preview2-1-003177 然后在命令提示符下“ dotnet --version”报告:1.0.0-preview2-1-003177
Shouldn't this be 1.1.0 ? 这不是1.1.0吗?
When I download the LTS version 1.0.1, the download is DotNetCore.1.0.1-SDK.1.0.0.Preview2-003133-x64.exe 当我下载LTS版本1.0.1时,下载的文件是DotNetCore.1.0.1-SDK.1.0.0.Preview2-003133-x64.exe
So it has 1.0.1 in the name, shouldn't the 1.1 version have 1.1 in the name? 所以它的名称为1.0.1,1.1版本的名称是否应该为1.1?
Shouldn't this be 1.1.0 ? 这不是1.1.0吗?
No. dotnet --version
prints the version of the CLI , not the runtime you have installed. 否dotnet --version
打印CLI的版本,而不是已安装的运行时。 You can actually have multiple runtimes installed, but there is no command that actually lists the latest runtime you have installed. 您实际上可以安装多个运行时,但是没有命令实际列出您已安装的最新运行时。
This is all outlined in a GitHub issue here: https://github.com/dotnet/cli/issues/3773 在GitHub问题中对此进行了概述: https : //github.com/dotnet/cli/issues/3773
You can check the filesystem, the location varies by OS. 您可以检查文件系统,其位置因操作系统而异。 On OS X you can do this: ls /usr/local/share/dotnet/shared/Microsoft.NETCore.App
在OS X上,您可以执行以下操作: ls /usr/local/share/dotnet/shared/Microsoft.NETCore.App
shouldn't the 1.1 version have 1.1 in the name 1.1版本的名称中不应包含1.1
That's just the download name. 那只是下载名称。 Unfortunately the SDKs with the 1.1 runtime don't actually include 1.1 in the name. 不幸的是,带有1.1运行时的SDK实际上并未在名称中包含1.1。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.