1

希望有人可以帮助我解决这个问题。我正在使用 macOS Monterey 12.0.1 并安装了 Visual Studio 代码 2。到目前为止一切正常,但是当我打开bicep文件时。我得到这个错误。

Downloading the .NET Runtime.
Downloading .NET version(s) 5.0.11 ....... Error!
Failed to download .NET 5.0.11:
Command failed: "/Users/user/.vscode/extensions/ms-dotnettools.vscode-dotnet-runtime-1.3.0/dist/install scripts/dotnet-install.sh" -InstallDir "/Users/user/Library/Application Support/Code/User/globalStorage/ms-dotnettools.vscode-dotnet-runtime/.dotnet/5.0.11" -Version 5.0.11 -Runtime dotnet
dotnet_install: Error: Could not find `.NET Core Runtime` with version = 5.0.11
dotnet_install: Error: Refer to: https://aka.ms/dotnet-os-lifecycle for information on .NET Core support


 Error!
.NET Acquisition Failed: Installation failed: Error: Command failed: "/Users/user/.vscode/extensions/ms-dotnettools.vscode-dotnet-runtime-1.3.0/dist/install scripts/dotnet-install.sh" -InstallDir "/Users/user/Library/Application Support/Code/User/globalStorage/ms-dotnettools.vscode-dotnet-runtime/.dotnet/5.0.11" -Version 5.0.11 -Runtime dotnet
dotnet_install: Error: Could not find `.NET Core Runtime` with version = 5.0.11
dotnet_install: Error: Refer to: https://aka.ms/dotnet-os-lifecycle for information on .NET Core support

我确信 .NET 已安装,如您所见,如果我运行botnet --info

.NET runtimes installed:
  Microsoft.AspNetCore.App 3.1.11 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 5.0.2 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 5.0.11 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 3.1.11 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 5.0.2 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 5.0.11 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]

但据我所知,路径完全不同,我不知道这是否是主要问题。我有另一台 Mac 笔记本电脑,我可以在 VsCode 中使用二头肌,没有任何问题。

这是否发生在任何人身上,并且可能会帮助我解决这个问题,因为我找不到任何有效的解决方案。

4

0 回答 0