Skip to content

Commit ab1425c

Browse files
authored
Merge pull request #289162 from MicrosoftDocs/repo_sync_working_branch
Confirm merge from repo_sync_working_branch to main to sync with https://github.com/MicrosoftDocs/azure-docs (branch main)
2 parents d5eb60e + a053a84 commit ab1425c

File tree

1 file changed

+1
-56
lines changed

1 file changed

+1
-56
lines changed

articles/azure-resource-manager/bicep/installation-troubleshoot.md

Lines changed: 1 addition & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -10,61 +10,6 @@ ms.date: 03/20/2024
1010

1111
This article describes how to resolve potential errors in your Bicep installation.
1212

13-
## .NET runtime error
14-
15-
When installing the Bicep extension for Visual Studio Code, you may run into the following error messages:
16-
17-
```error
18-
Failed to install .NET runtime v5.0
19-
```
20-
21-
```error
22-
Failed to download .NET 5.0.x ....... Error!
23-
```
24-
25-
> [!WARNING]
26-
> This is a last resort solution that may cause problems when updating versions.
27-
28-
To solve the problem, you can manually install .NET from the [.NET website](https://aka.ms/dotnet-core-download), and then configure Visual Studio Code to reuse an existing installation of .NET with the following settings:
29-
30-
**Windows**
31-
32-
```json
33-
"dotnetAcquisitionExtension.existingDotnetPath": [
34-
{
35-
"extensionId": "ms-azuretools.vscode-bicep",
36-
"path": "C:\\Program Files\\dotnet\\dotnet.exe"
37-
}
38-
]
39-
40-
```
41-
42-
**macOS**
43-
44-
If you need an **x64** installation, use:
45-
46-
```json
47-
"dotnetAcquisitionExtension.existingDotnetPath": [
48-
{
49-
"extensionId": "ms-azuretools.vscode-bicep",
50-
"path": "/usr/local/share/dotnet/x64/dotnet"
51-
}
52-
]
53-
```
54-
55-
For other **macOS** installations, use:
56-
57-
```json
58-
"dotnetAcquisitionExtension.existingDotnetPath": [
59-
{
60-
"extensionId": "ms-azuretools.vscode-bicep",
61-
"path": "/usr/local/share/dotnet/dotnet"
62-
}
63-
]
64-
```
65-
66-
See [User and Workspace Settings](https://code.visualstudio.com/docs/getstarted/settings) for configuring Visual Studio Code settings.
67-
6813
## Visual Studio Code error
6914

7015
If you see the following error message popup in Visual Studio Code:
@@ -77,7 +22,7 @@ From VS Code, open the **Output** view in the pane at the bottom of the screen,
7722

7823
:::image type="content" source="./media/installation-troubleshoot/visual-studio-code-output-pane-bicep.png" alt-text="Visual Studio Code output pane":::
7924

80-
If you see the following output in the pane, and you're using Bicep CLI **version 0.4.1124** or later, check whether you have added the `dotnetAcquisitionExtension.existingDotnetPath` configuration option to VS Code. See [.NET runtime error](#net-runtime-error). If this configuration option is present, remove it and restart VS Code.
25+
If you see the following output in the pane, check whether you have added the `dotnetAcquisitionExtension.existingDotnetPath` setting to VS Code. If this setting is present, remove it and restart VS Code. See [User and Workspace Settings](https://code.visualstudio.com/docs/getstarted/settings) for configuring Visual Studio Code settings.
8126

8227
```error
8328
It was not possible to find any compatible framework version.

0 commit comments

Comments
 (0)