dotnet / dotnet/arcade

Incorrect SDK version used when multiple SDKs are installed

Open
#3,764 13 comments 2 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.