在代码空间上开发.NET 5



是否可以在Visual Studio代码空间上使用dotnet 5?我已经按照这里找到的ubuntu 18.04的说明https://learn.microsoft.com/en-us/dotnet/core/install/linux-ubuntu#1804-

运行后:

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没有显示?

当前的解决方案是运行:

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

最新更新