Problem
Hopefully, someone will be able to assist me in resolving this problem. I’m using macOS Monterey 12.0.1 with Visual Studio Code 2 installed. So far, everything has gone well, however when I open a bicep file, something goes wrong. This is the error I’m getting.
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
I know.NET is installed because I can see it when I run 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]
However, as far as I can see, the path is completely different, and I’m not sure if that is the major issue. I have a second Mac laptop on which I can utilize bicep in VsCode without any problems.
Is this anything that has happened to anyone else? If so, it may be able to assist me in resolving this problem, as I have been unable to discover a viable solution.
Asked by Nayden Van
Post is based on https://stackoverflow.com/questions/69864604/azure-bicep-failed-to-download-net