Skip to content

Bump SDK to 10.0.101#250

Merged
radical merged 2 commits intodotnet:mainfrom
radical:ankj/global-json-10-0-101
Mar 13, 2026
Merged

Bump SDK to 10.0.101#250
radical merged 2 commits intodotnet:mainfrom
radical:ankj/global-json-10-0-101

Conversation

@radical
Copy link
Copy Markdown
Member

@radical radical commented Mar 12, 2026

Summary

  • bump global.json from 10.0.100 to 10.0.101
  • surface failed repo prepares as warnings during Prepare All Repositories

Issue

As discussed in #247, the failure was not that source-indexer itself needed a broad SDK upgrade. The problem was that the pipeline installed .NET SDK 10.0.100, while msbuild bootstrapped and used .NET SDK 10.0.101 in its repo-local .dotnet.

That mismatch mattered because Roslyn from the 10.0.101 SDK then resolved runtime state from the outer pipeline-installed dotnet location, which only had Microsoft.NETCore.App 10.0.0, not 10.0.1. The result was the msbuild prepare failure seen in #247.

Why this PR

This PR fixes that concrete failure by ensuring the outer pipeline-installed SDK/runtime matches the patch level needed by the current msbuild bootstrap (10.0.101). In practice, that means UseDotNet@2 installs a runtime new enough to satisfy the current msbuild toolset expectations.

This change also keeps failed repo prepares visible by emitting explicit warnings instead of silently swallowing them.

Notes

A separate PR (#249) continues the broader environment-isolation work for per-repo prepare commands. That is still useful hardening, but this PR stands on its own as the direct SDK-version fix for the issue raised in #247.

Validation

  • dotnet --version
  • internal build queued for branch ankj/global-json-10-0-101

radical and others added 2 commits March 12, 2026 14:35
Bump source-indexer's global.json from 10.0.100 to 10.0.101 as a contained mitigation for the current msbuild runtime mismatch while the broader prepare environment isolation fix proceeds separately.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
EOF && git push -u rf ankj/global-json-10-0-101 && gh pr create --repo dotnet/source-indexer --base main --head radical:ankj/global-json-10-0-101 --draft --title "Temporarily bump SDK to 10.0.101" --body-file - <<'EOF'
## Summary
- bump `global.json` from `10.0.100` to `10.0.101`

## Why
This is a contained temporary mitigation for the current `msbuild` mismatch, where repo-local SDK bits can end up using runtime state from the outer pipeline-installed dotnet. Installing `10.0.101` in the outer pipeline should make the hosted toolcache contain a runtime new enough to avoid the current `10.0.1` app-launch failure.

This is intentionally separate from the broader fix in dotnet#249, which isolates inherited `.NET` environment variables during per-repo prepare.

## Validation
- `dotnet --version`
Backport the explicit warning emission for per-repo prepare failures to the temporary global.json mitigation branch so failed repo prepares are visible without pulling in the full environment-isolation change.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@radical radical changed the title Temporarily bump SDK to 10.0.101 Bump SDK to 10.0.101 Mar 12, 2026
@radical radical marked this pull request as ready for review March 12, 2026 20:42
@radical radical requested review from jjonescz and joperezr March 12, 2026 20:48
@radical radical mentioned this pull request Mar 12, 2026
@radical radical enabled auto-merge (squash) March 12, 2026 20:57
@radical radical merged commit f4cb8bd into dotnet:main Mar 13, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants