Incorrect SDK version used when multiple SDKs are installed
Open
- Dominant language
- C#
- Stars
- 729
- Forks
- 397
- Avg merge
- 3d 15m
- Merged PRs (30d)
- 149
Description
The version detection logic in `tools.sh/ps1` will use a globally installed "dotnet" if the install directory contains the SDK version requested in global.json.
If there are multiple SDKs installed (one that happens to match the requested version), this can result in using a version later than the one requested. Together with https://github.com/dotnet/arcade/issues/3763 this was resulting in local builds of coreclr using an incorrect SDK version in some cases.
Contributor guide
Assessment
This issue has not been assessed yet.