Repository navigation
Use global.json-matched SDK for VMR license scan (1xx) - #8012
Merged
nagilson merged 1 commit intoJul 29, 2026
Merged
Conversation
The source-build license scan job ran `dotnet test` with the container's system .NET SDK. The shared source-build test container now ships a newer .NET 10 SDK than this branch's global.json pins (different feature band), so SDK resolution failed and the scan never ran. Install the global.json SDK via eng/common/tools.sh and invoke that dotnet instead. Related to dotnet/source-build#5623 Co-authored-by: Copilot <[email protected]> Copilot-Session: cdfea5e9-cd26-4b0a-86f7-aecc8d23d983
|
Azure Pipelines: Successfully started running 1 pipeline(s). 1 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
ellahathaway
approved these changes
Jul 28, 2026
|
Azure Pipelines: Successfully started running 1 pipeline(s). 1 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
ViktorHofer
reviewed
Jul 29, 2026
|
|
||
| - script: > | ||
| dotnet test | ||
| $(DotNetPath)/dotnet test |
Member
There was a problem hiding this comment.
Oh a regression that I introduced. Please just use eng/common/dotnet.sh instead which handles all that stuff automatically.
dkurepa
pushed a commit
to maestro-auth-test/dotnet
that referenced
this pull request
Aug 11, 2026
…nstall Follow-up to dotnet#8012. That change worked around an SDK-resolution regression by installing the global.json-matched SDK via eng/common/tools.sh and invoking it through $(DotNetPath)/dotnet. Per review feedback, eng/common/dotnet.sh already acquires the correct SDK and invokes it, so use it directly and drop the manual install step. Related to dotnet/source-build#5623 Co-authored-by: Copilot <[email protected]> Copilot-Session: e7257ff7-f19d-4b7c-ba41-cdac231893fb
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.
What
The VMR license scan job launched dotnet test with the source-build test container's system .NET SDK (currently 10.0.302). On the servicing branches whose global.json pins a different feature band (this branch pins 10.0.1xx), SDK resolution fails with "A compatible .NET SDK was not found" (exit 155) and the scan never runs.
Fix
Install the global.json-matched SDK via eng/common/tools.sh (InitializeDotNetCli) and invoke that
dotnetfor the scan — the same pattern the siblingPublish_Test_Results_PRjob already uses./p:SkipPrepareSdkArchive=trueis kept because the license scan only reads source and does not need the source-built SDK archive.Testing
Once merged, the next scheduled/triggered run of the source-build license scan pipeline on this branch should launch successfully instead of failing to find an SDK.
Tracking: dotnet/source-build#5623