0

是否可以在 Visual Studio Codespaces 上使用 dotnet 5?我已按照此处https://docs.microsoft.com/en-us/dotnet/core/install/linux-ubuntu#1804-找到的 ubuntu 18.04 的说明进行操作

运行后:

sudo apt-get install -y dotnet-sdk-5.0

我得到回应:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
dotnet-sdk-5.0 is already the newest version (5.0.100-1).
0 upgraded, 0 newly installed, 0 to remove and 39 not upgraded.

当我运行时,dotnet --list-sdks我得到以下版本:

1.1.14 [/home/codespace/.dotnet/sdk]
2.1.807 [/home/codespace/.dotnet/sdk]
2.2.402 [/home/codespace/.dotnet/sdk]
3.0.103 [/home/codespace/.dotnet/sdk]
3.1.301 [/home/codespace/.dotnet/sdk]

为什么5.0没有显示?

4

1 回答 1

1

当前的解决方法是运行:

curl -sSL 'https://download.visualstudio.microsoft.com/download/pr/820db713-c9a5-466e-b72a-16f2f5ed00e2/628aa2a75f6aa270e77f4a83b3742fb8/dotnet-sdk-5.0.100-linux-x64.tar.gz' | tar -xzC ~/.dotnet
于 2020-12-02T15:41:23.900 回答