Repository navigation
[release/11.0] Install the SDK from sdk.version when tools.dotnet is not specified - #17818
Merged
ViktorHofer merged 1 commit intoNov 19, 2026
Conversation
…otnet#17816) Co-authored-by: Copilot <[email protected]> Copilot-Session: 92e5d4ad-1f02-4608-88b1-2420560b5813 Copilot-Session: e0dbec8f-3832-4bb7-a663-ed18780aec88 (cherry picked from commit 9f5b80b) Copilot-Session: 3a6f64b5-da53-4d45-994a-ba2879c16c5e
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
The SDK-version fallback backport has no active review issues.
No open issues 🎉
What changed in this PR
Backports #17816 to release/11.0, allowing Arcade to install the SDK from sdk.version when tools.dotnet is absent, while preserving the release branch’s task structure.
Changes:
- Adds SDK-version fallback to Bash, PowerShell, and
LocateDotNet, keepingtools.dotnetprecedence. - Adds parsing tests and documents the fallback and Maestro dependency-flow limitation.
- Removes the unused
CheckRequiredDotNetVersiontask and its registration.
| File | Description |
|---|---|
| src/Microsoft.DotNet.Arcade.Sdk/tools/BuildTasks.props | Removes the obsolete task registration; retains existing architecture attributes. |
| src/Microsoft.DotNet.Arcade.Sdk/src/LocateDotNet.cs | Uses JSON parsing to resolve the SDK version with fallback. |
| src/Microsoft.DotNet.Arcade.Sdk/src/CheckRequiredDotNetVersion.cs | Deletes the unused version-check task. |
| src/Microsoft.DotNet.Arcade.Sdk.Tests/LocateDotNetTests.cs | Tests precedence, fallback, supported JSON syntax, and errors. |
| eng/common/tools.sh | Adds SDK-version fallback for Bash bootstrapping. |
| eng/common/tools.ps1 | Adds fallback and supports an absent tools section. |
| Documentation/ArcadeSdk.md | Documents SDK-only configuration, precedence, and dependency-flow limitations. |
Review effort: Balanced
akoeplinger
approved these changes
Nov 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport of #17816 to release/11.0.
When
global.jsondoesn't specifytools.dotnet, Arcade installs/uses the SDK version fromsdk.version. See #17816 for the full description.Conflict resolution
release/11.0 doesn't have the multithreaded-task (
IMultiThreadableTask/TaskEnvironment) changes from main, and itsBuildTasks.propsUsingTasks carryArchitecture="*". Resolved accordingly:LocateDotNet.cs: kept release/11.0's existing task structure (string cache key,Environment.GetEnvironmentVariable); applied only theTryGetDotNetSdkVersionchange from the PR.BuildTasks.props: removed theCheckRequiredDotNetVersionUsingTask, keptArchitecture="*"on the remaining ones.CheckRequiredDotNetVersion.cs: deleted, as in the original PR.eng/common/tools.ps1,eng/common/tools.sh,Documentation/ArcadeSdk.mdandLocateDotNetTests.csapplied cleanly; their diff is identical to #17816.Validation
.\eng\common\build.ps1 -restore -build -projects src\Microsoft.DotNet.Arcade.Sdk.Tests\Microsoft.DotNet.Arcade.Sdk.Tests.csproj: passed (0 warnings, 0 errors).dotnet test artifacts\bin\Microsoft.DotNet.Arcade.Sdk.Tests\Debug\net11.0\Microsoft.DotNet.Arcade.Sdk.Tests.dll --filter "FullyQualifiedName~LocateDotNetTests|FullyQualifiedName~InstallDotNetCoreTests": passed (9/9).eng/common/tools.ps1against a synthetic repo whoseglobal.jsonhas onlysdk.versionand notoolssection (pwsh 7 and Windows PowerShell 5.1):GetDotNetSdkVersionreturnedsdk.version,GlobalJsonSpecifiesDotNetSdkwas true, default enginedotnet: passed.To double check: