-
Notifications
You must be signed in to change notification settings - Fork 486
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
Failed to install dotnet, exit code: 1. dotnet-install: The current user doesn't have write access to the installation root 'C:\Program Files\dotnet #571
Comments
Hello @Miguel-AgRz, Thank you for creating this issue and we will look into it :) |
Hi @Miguel-AgRz, Suggested Solutions
Let us know if either of these solutions resolves the issue. If the problem persists, please provide the repro steps or a link to a repository so we can investigate further. |
you use https://dotnetcli.azureedge.net/dotnet/release-metadata/releases-index.json as DotnetCoreIndexFallbackUrl
why do you not use |
Hello @Mykhailo-Roit, The setup-dotnet action installs the latest stable LTS runtime by default, which in this case is version 8.0.12. However, it will also successfully install the specific .NET SDK version you request, such as 8.0.101, as indicated in your workflow file. It's important to understand that the SDK and runtime versions are handled separately. Specifying an SDK version (like 8.0.101) does not automatically install the corresponding runtime version. As a result, the runtime will default to the latest stable LTS version (8.0.12), even though the requested SDK version (8.0.101) is installed correctly. With the release of setup-dotnet v4.0.0, an install-script was introduced to ensure the LTS version of the .NET executable is installed automatically, addressing issues seen in the previous v3.x version. You can check the release notes for further details. Additionally, keep in mind that the versions already installed on the runner image will be readily available. For example, on macOS 14, the runtime version 8.0.10 is pre-installed (see macos-14 Readme). Let me know if you need further clarification! |
Description:
installer is trying to install in program files
Task version:
6.0.x
Platform:
Runner type:
Repro steps:
A description with steps to reproduce the issue. If your have a public example or repo to share, please provide the link.
Expected behavior:
it should install in user environment or work folder
Actual behavior:
A description of what is actually happening.
The text was updated successfully, but these errors were encountered: