Please note that, depending on your network speed, installing the .NET Core runtime might take some time. By default, the installation terminates unsuccessfully if it takes longer than 10 minutes to finish. If you believe this is too little (or too much) time to allow for the download, you can change the timeout value by setting dotnetAcquisitionExtension.installTimeoutValue
to a custom value.
Learn more about configuring Visual Studio Code settings here and see below for an example of a custom timeout in a settings.json
file. In this example the custom timeout value is 180 seconds, or 3 minutes.
{
"dotnetAcquisitionExtension.installTimeoutValue": 180
}
The .NET Install Tool requires TLS 1.2 to be enabled in order to install .NET. For more information on TLS1.2, see the documentation.
If .NET installation is failing or you want to reuse an existing installation of .NET, you can use the dotnetAcquisitionExtension.existingDotnetPath
setting. .NET can be manually installed from the .NET website. To direct this extension to that installation, update your settings with the extension ID and the path as illustrated below.
"dotnetAcquisitionExtension.existingDotnetPath": [
{"extensionId": "msazurermtools.azurerm-vscode-tools", "path": "C:\\Program Files\\dotnet\\dotnet.exe"}
]
"dotnetAcquisitionExtension.existingDotnetPath": [
{"extensionId": "msazurermtools.azurerm-vscode-tools", "path": "/usr/local/share/dotnet/dotnet"}
]
Haven't found a solution? Check out our open issues. If you don't see your issue there, please file a new issue by evoking the .NET Install Tool: Report an issue with the .NET Install Tool
command from Visual Studio Code.