-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
[BUG]: UseDotNet@2 task deletes other pre-installed SDKs #20668
Comments
Hi @alex-zyl thank you for reporting this issue. We are currently working on higher-prioritized issues, but we will get back to this one as soon as possible |
One trick I found is to copy the currently installed SDKS to the new installed path e.g.
This makes all the SDKs available to the rest of the pipeline |
I adapted the trick of @phatcher to windows agents where UseDotNet works slightly differently (installs SDKs to
In fact I even created a more advanced version, that also sets environment variables, like
|
New issue checklist
Task name
UseDotNet@2
Task version
2.247.1
Issue Description
After calling UseDotNet@2 task, the new .NET SDK location is changed from
/usr/share/dotnet/sdk
to/opt/hostedtoolcache/dotnet
making pre-installed SDKs no longer available.Environment type (Please select at least one enviroment where you face this issue)
Azure DevOps Server type
dev.azure.com (formerly visualstudio.com)
Azure DevOps Server Version (if applicable)
No response
Operation system
Ubuntu-latest
Relevant log output
Full task logs with system.debug enabled
Repro steps
The text was updated successfully, but these errors were encountered: