# 脚本安装
wget https://dot.net/v1/dotnet-install.ps1 # PowerShell (Windows)
wget https://dot.net/v1/dotnet-install.sh # Bash (Linux/macOS)
./dotnet-install.sh # 默认安装 LTS
./dotnet-install.sh -c Current # 当前最新
./dotnet-install.sh -c 5.0 # 指定版本
./dotnet-install.sh -c Current --runtime aspnetcore # 不安装 SDK,仅安装运行时
./dotnet-install.sh -c 6.0 -InstallDir /package/dotnet/60p6 # 指定版本和安装路径
# help
https://docs.microsoft.com/zh-cn/dotnet/core/install/
https://docs.microsoft.com/zh-cn/dotnet/core/install/linux-scripted-manual
https://docs.microsoft.com/zh-cn/dotnet/core/tools/dotnet-install-script