无济于事。我无法在 ubuntu 上安装 .net sdk 5.0
我尝试运行一个简单的 Blazor 项目,我得到了这个:
dotnet-sdk.dotnet electronize init
It was not possible to find any compatible framework version
The framework 'Microsoft.NETCore.App', version '3.1.0' was not found.
- The following frameworks were found:
5.0.0-rc.2.20475.5 at [/snap/dotnet-sdk/103/shared/Microsoft.NETCore.App]
You can resolve the problem by installing the specified framework and/or SDK.
The specified framework can be found at:
- https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=3.1.0&arch=x64&rid=ubuntu.20.04-x64
答案1
你已经有5.0.0 环境,甚至dotnet
检测到它,如您的输出所示:
- The following frameworks were found:
5.0.0-rc.2.20475.5 at [/snap/dotnet-sdk/103/shared/Microsoft.NETCore.App]
你的问题不在于你没有 5.0.0 环境,而是你正在处理的项目需要旧版本,3.1.0
具体来说。
所以问题不在于你没有安装 5.0.0,而在于你的项目无法使用 5.0.0