Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error acquiring .NET despite manually downloading from website #155

Open
0x-duelker opened this issue Feb 12, 2025 · 1 comment
Open

Error acquiring .NET despite manually downloading from website #155

0x-duelker opened this issue Feb 12, 2025 · 1 comment

Comments

@0x-duelker
Copy link

'Github Copilot for Azure' extension keeps giving 'Error acquiring .NET' warning. I downloaded latest recommended release for my Apple silicon mac, changed the '.NET Install Tool's settings.json file to point to this manual install , restarted VS Code but still the same resutl :(

Does this occur consistently? Yes

Action: azextAgent.activate
Error type: Error
Error Message: Failed to acquire .NET runtime. Please report an issue and share the output from the redacted:url Install Tool' output channel.

Version: 0.3.97
OS: darwin
OS Release: 24.3.0
Product: Visual Studio Code
Product Version: 1.97.1
Language: en

Call Stack
extension.bundle.js:2:1806643
fulfilled extension.bundle.js:2:1805738

Output:
Error : (DotnetCommandFailed)
Failed to download .NET 8.0.13arm64aspnetcore:
.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: "/Users//.vscode/extensions/ms-dotnettools.vscode-dotnet-runtime-2.2.8/dist/install scripts/dotnet-install.sh" -InstallDir "/Users//Library/Application Support/Code/User/globalStorage/ms-dotnettools.vscode-dotnet-runtime/.dotnet/8.0.13arm64aspnetcore" -Version 8.0.13 -Verbose -Runtime aspnetcore -Architecture arm64
dotnet_install: Error: Could not find ASP.NET Core Runtime with version = 8.0.13
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: "/Users//.vscode/extensions/ms-dotnettools.vscode-dotnet-runtime-2.2.8/dist/install scripts/dotnet-install.sh" -InstallDir "/Users//Library/Application Support/Code/User/globalStorage/ms-dotnettools.vscode-dotnet-runtime/.dotnet/8.0.13arm64aspnetcore" -Version 8.0.13 -Verbose -Runtime aspnetcore -Architecture arm64
dotnet_install: Error: Could not find ASP.NET Core Runtime with version = 8.0.13
dotnet_install: Error: Refer to: https://aka.ms/dotnet-os-lifecycle for information on .NET Core support
, CODE: 1, SIGNAL: null
at m.next (/Users//.vscode/extensions/vscode-dotnet-runtime-library/dist/Acquisition/AcquisitionInvoker.js:82:50)
at Generator.next ()
at s (/Users/
/.vscode/extensions/vscode-dotnet-runtime-library/dist/Acquisition/AcquisitionInvoker.js:5:58)

@JasonYeMSFT
Copy link
Contributor

@0x-duelker To clarify, did you manually download and install the .Net runtime and set in the settings.json to point to the dotnet.exe of the manually installed instance? Your link points to the section about setting the timeout value. If you manually installed the .Net runtime, this is necessary to tell the tool where to search for the installed instance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants