Pet*_*cek 4 .net linux ubuntu .net-core
如何安装最新版本的 .NET Core 运行时已经很好地解释了,基本上
须藤 apt-get 安装 dotnet-runtime-3.1
如果我们想安装旧版本怎么办?
微软提供dotnet-install.sh. 这是可能的dotnet-install.sh -Version 3.1.0 -Runtime aspnetcore。但是,此脚本将二进制文件写入 $HOME/.dotnet 下。也没有列出运行时dotnet --info。
如何安装 dotnet --info 识别的特定版本的 .NET Core 运行时?
您可以使用
apt policy dotnet-sdk-3.1
Run Code Online (Sandbox Code Playgroud)
查看可用版本列表。然后,
sudo apt-get install -y --allow-downgrades dotnet-sdk-3.1=3.1.301-1
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2271 次 |
| 最近记录: |