【发布时间】:2020-11-11 19:30:03
【问题描述】:
我在 Mac 上,新的 .NET 5.0 刚刚发布。我已经用 dotnet-install.sh 安装了它
dotnet-install.sh --version 5.0.100
dotnet-install: Note that the intended use of this script is for Continuous Integration (CI) scenarios, where:
dotnet-install: - The SDK needs to be installed without user interaction and without admin rights.
dotnet-install: - The SDK installation doesn't need to persist across multiple CI runs.
dotnet-install: To set up a development environment or to run apps, use installers rather than this script. Visit https://dotnet.microsoft.com/download to get the installer.
dotnet-install: .NET Core SDK version 5.0.100 is already installed.
dotnet-install: Adding to current process PATH: `/Users/l1x/.dotnet`. Note: This change will be visible only when sourcing script.
dotnet-install: Note that the script does not resolve dependencies during installation.
dotnet-install: To check the list of dependencies, go to https://docs.microsoft.com/dotnet/core/install, select your operating system and check the "Dependencies" section.
dotnet-install: Installation finished successfully.
但是我看不到已安装的 SDK。
dotnet --list-sdks
2.2.402 [/usr/local/share/dotnet/sdk]
3.1.101 [/usr/local/share/dotnet/sdk]
在 Mac 上从命令行安装 .NET SDK 的推荐方法是什么?
【问题讨论】:
-
遵循官方文档有什么问题吗? docs.microsoft.com/en-gb/dotnet/core/install/…