-
Notifications
You must be signed in to change notification settings - Fork 355
Description
Describe the bug.
I've checked the dotnet paths all exist and dotnet cli works. It keeps on trying to install dotnet when devcontainer is opened.
Please attach log file(s) here if you have any.
ms-dotnettools.csharp requested to download the .NET ASP.NET Runtime.
Downloading .NET version(s) 9.0.5x64aspnetcore ......................................
Error : (DotnetAcquisitionFinalError)
Failed to download .NET 9.0.5x64aspnetcore:
.NET Acquisition Failed: .NET install timed out.
You should change the timeout if you have a slow connection. See: https://github.com/dotnet/vscode-dotnet-runtime/blob/main/Documentation/troubleshooting-runtime.md#install-script-timeouts.
Our CDN may be blocked in China or experience significant slowdown, in which case you should install .NET manually., MESSAGE: Command failed: "/root/.vscode-server/extensions/ms-dotnettools.vscode-dotnet-runtime-2.3.2/dist/install scripts/dotnet-install.sh" -InstallDir "/root/.vscode-server/data/User/globalStorage/ms-dotnettools.vscode-dotnet-runtime/.dotnet/9.0.5x64aspnetcore" -Version 9.0.5 -Verbose -Runtime aspnetcore -Architecture x64
dotnet_install: Error: Could not find ASP.NET Core Runtime
with version = 9.0.5
dotnet_install: Error: Refer to: https://aka.ms/dotnet-os-lifecycle for information on .NET Core support
, CODE: 1, SIGNAL: null, Error: .NET install timed out.
You should change the timeout if you have a slow connection. See: https://github.com/dotnet/vscode-dotnet-runtime/blob/main/Documentation/troubleshooting-runtime.md#install-script-timeouts.
Our CDN may be blocked in China or experience significant slowdown, in which case you should install .NET manually., MESSAGE: Command failed: "/root/.vscode-server/extensions/ms-dotnettools.vscode-dotnet-runtime-2.3.2/dist/install scripts/dotnet-install.sh" -InstallDir "/root/.vscode-server/data/User/globalStorage/ms-dotnettools.vscode-dotnet-runtime/.dotnet/9.0.5x64aspnetcore" -Version 9.0.5 -Verbose -Runtime aspnetcore -Architecture x64
dotnet_install: Error: Could not find ASP.NET Core Runtime
with version = 9.0.5
dotnet_install: Error: Refer to: https://aka.ms/dotnet-os-lifecycle for information on .NET Core support
, CODE: 1, SIGNAL: null
at g.next (/root/.vscode-server/extensions/vscode-dotnet-runtime-library/dist/Acquisition/AcquisitionInvoker.js:87:54)
at Generator.next ()
at s (/root/.vscode-server/extensions/vscode-dotnet-runtime-library/dist/Acquisition/AcquisitionInvoker.js:5:58)
Error : (DotnetASPNetRuntimeFinalAcquisitionError)
ms-dotnettools.csdevkit tried to install .NET 9.0.5x64aspnetcore but that install had already been requested. No downloads or changes were made.
ms-dotnettools.csharp requested to download the .NET ASP.NET Runtime.
Downloading .NET version(s) 9.0.5x64aspnetcore .....................................
Error : (DotnetAcquisitionFinalError)
Failed to download .NET 9.0.5x64aspnetcore:
.NET Acquisition Failed: .NET install timed out.
You should change the timeout if you have a slow connection. See: https://github.com/dotnet/vscode-dotnet-runtime/blob/main/Documentation/troubleshooting-runtime.md#install-script-timeouts.
Our CDN may be blocked in China or experience significant slowdown, in which case you should install .NET manually., MESSAGE: Command failed: "/root/.vscode-server/extensions/ms-dotnettools.vscode-dotnet-runtime-2.3.2/dist/install scripts/dotnet-install.sh" -InstallDir "/root/.vscode-server/data/User/globalStorage/ms-dotnettools.vscode-dotnet-runtime/.dotnet/9.0.5x64aspnetcore" -Version 9.0.5 -Verbose -Runtime aspnetcore -Architecture x64
dotnet_install: Error: Could not find ASP.NET Core Runtime
with version = 9.0.5
dotnet_install: Error: Refer to: https://aka.ms/dotnet-os-lifecycle for information on .NET Core support
, CODE: 1, SIGNAL: null, Error: .NET install timed out.
You should change the timeout if you have a slow connection. See: https://github.com/dotnet/vscode-dotnet-runtime/blob/main/Documentation/troubleshooting-runtime.md#install-script-timeouts.
Our CDN may be blocked in China or experience significant slowdown, in which case you should install .NET manually., MESSAGE: Command failed: "/root/.vscode-server/extensions/ms-dotnettools.vscode-dotnet-runtime-2.3.2/dist/install scripts/dotnet-install.sh" -InstallDir "/root/.vscode-server/data/User/globalStorage/ms-dotnettools.vscode-dotnet-runtime/.dotnet/9.0.5x64aspnetcore" -Version 9.0.5 -Verbose -Runtime aspnetcore -Architecture x64
dotnet_install: Error: Could not find ASP.NET Core Runtime
with version = 9.0.5
dotnet_install: Error: Refer to: https://aka.ms/dotnet-os-lifecycle for information on .NET Core support
, CODE: 1, SIGNAL: null
at g.next (/root/.vscode-server/extensions/vscode-dotnet-runtime-library/dist/Acquisition/AcquisitionInvoker.js:87:54)
at Generator.next ()
at s (/root/.vscode-server/extensions/vscode-dotnet-runtime-library/dist/Acquisition/AcquisitionInvoker.js:5:58)
Error : (DotnetASPNetRuntimeFinalAcquisitionError)
Error : (DotnetAcquisitionFinalError)
Error : (DotnetASPNetRuntimeFinalAcquisitionError)
Reproduction Steps
Devcontainer with Dockerfile containing following:
FROM mcr.microsoft.com/dotnet/sdk:8.0
ENV DOTNET_ROOT=/usr/share/dotnet
ENV PATH=${PATH}:${DOTNET_ROOT}:/root/.dotnet/tools
ENV DOTNET_RUNNING_IN_CONTAINER=true
devcontainer.json have following settings
{
...
"remoteUser": "root",
"customizations": {
"vscode": {
"settings": {
"dotnet.sdk.enableAutoAcquisition": false,
"dotnetAcquisitionExtension.sharedExistingDotnetPath": "/usr/share/dotnet/dotnet",
"dotnetAcquisitionExtension.existingDotnetPath": [
{
"extensionId": "ms-dotnettools.csdevkit",
"path": "/usr/share/dotnet/dotnet"
},
{
"extensionId": "ms-dotnettools.vscodeintellicode-csharp",
"path": "/usr/share/dotnet/dotnet"
},
{
"extensionId": "ms-dotnettools.csharp",
"path": "/usr/share/dotnet/dotnet"
},
{
"extensionId": "ms-dotnettools.vscode-dotnet-runtime",
"path": "/usr/share/dotnet/dotnet"
},
{
"extensionId": "msazurermtools.azurerm-vscode-tools",
"path": "/usr/share/dotnet/dotnet"
}
]
},
"extensions": [
...
// Dotnet
"ms-dotnettools.csdevkit",
]
}
}
}
Also, at workspace I have global.json
with
{
"sdk": {
"version": "8.0.0"
}
}
Expected Behavior
It should not attempt to install any additional dotnet SDK.
Exceptions & Errors (if any)
No response
.NET Install Tool Version
v2.3.2
Your operating system? Please provide more detail, such as the version and or distro above.
Windows
VS Code Version
1.96.2