Skip to content

Commit 2c0703e

Browse files
committed
troubleshoot .net installation failure
1 parent ba9a6d8 commit 2c0703e

File tree

1 file changed

+42
-1
lines changed

1 file changed

+42
-1
lines changed

articles/azure-resource-manager/bicep/install.md

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Set up Bicep development and deployment environments
33
description: How to configure Bicep development and deployment environments
44
ms.topic: conceptual
5-
ms.date: 10/01/2021
5+
ms.date: 10/20/2021
66
ms.custom: devx-track-azurepowershell, devx-track-azurecli
77
---
88

@@ -27,6 +27,47 @@ To verify you've installed the extension, open any file with the `.bicep` file e
2727

2828
:::image type="content" source="./media/install/language-mode.png" alt-text="Bicep language mode":::
2929

30+
### Troubleshoot
31+
32+
When install the Bicep extension for Visual Studio Code, you may run into the following error messages:
33+
34+
```error
35+
Failed to install .NET runtime v5.0
36+
```
37+
38+
or
39+
40+
```error
41+
Failed to download .NET 5.0.x ....... Error!
42+
```
43+
44+
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. by using the following settings:
45+
46+
**Windows**
47+
48+
```json
49+
"dotnetAcquisitionExtension.existingDotnetPath": [
50+
{
51+
"extensionId": "msazurermtools.azurerm-vscode-tools",
52+
"path": "C:\\Program Files\\dotnet\\dotnet.exe"
53+
}
54+
]
55+
56+
```
57+
58+
**Mac**
59+
60+
```json
61+
"dotnetAcquisitionExtension.existingDotnetPath": [
62+
{
63+
"extensionId": "msazurermtools.azurerm-vscode-tools",
64+
"path": "/usr/local/share/dotnet/dotnet"
65+
}
66+
]
67+
```
68+
69+
See [User and Workspace Settings](https://code.visualstudio.com/docs/getstarted/settings) for configuring Visual Studio Code settings.
70+
3071
## Deployment environment
3172

3273
After setting up your development environment, you need to install the tools for your deployment environment. To set up a local deployment environment, install the Bicep CLI with [Azure CLI](#azure-cli) or [Azure PowerShell](#azure-powershell). Those steps are shown in the next sections.

0 commit comments

Comments
 (0)