简体   繁体   English

我如何知道我是否拥有DotNet Core 1.1?

[英]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.

相关问题 没有project.json的情况下如何使用Dotnet Core 1.1 CLI工具? - How can I use Dotnet Core 1.1 CLI tooling without a project.json? 如何在 dotnet 核心中将查询字符串转换为 json 字符串? - How do I convert a querystring to a json string in dotnet core? 如何操作dotnet核心中的控制台光标位置? - How do I manipulate console cursor position in dotnet core? 如何在 dotnet core 的命令外壳中设置值 - How do I set the value in a command shell for dotnet core 如何将服务注入 C# Dotnet Core ILogger? - How do I inject a service into a C# Dotnet Core ILogger? 如何在.NET Core 1.1中引用本地类库项目? - How do I reference a local class library project in .NET Core 1.1? 我如何实际将“dotnet try-convert”应用于文件以转换为 .net core? - How do I actually apply the "dotnet try-convert" to files to convert to .net core? 带有dotnet核心和nunit的VSTS构建服务器 - 如何运行我的测试? - VSTS Build Server with dotnet core and nunit - how do I run my tests? 如何使用 dotnet core 3.1 为两个 React 应用程序设置路由? - How do I setup routes for two React apps using dotnet core 3.1? 如何访问 Services.Configure 中的选项对象<MyOptions>在 DotNet 核心依赖注入中? - How do I access the Options Object in Services.Configure<MyOptions> in DotNet Core Dependency Injection?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM