Skip to content

Update SDK pin to 10.0.108 and align global.json with dotnet repo patterns#35684

Merged
jfversluis merged 3 commits into
mainfrom
jfversluis/update-sdk-pin-main
Jun 1, 2026
Merged

Update SDK pin to 10.0.108 and align global.json with dotnet repo patterns#35684
jfversluis merged 3 commits into
mainfrom
jfversluis/update-sdk-pin-main

Conversation

@jfversluis
Copy link
Copy Markdown
Member

@jfversluis jfversluis commented Jun 1, 2026

Note

Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!

Description of Change

The main branch SDK pin in global.json was stale (10.0.100-rtm.25523.113) and had no automation to keep it updated (no Maestro subscription from dotnet/dotnet targets main).

This PR bumps tools.dotnet to stable 10.0.108 and fixes the bump-global-json.yml workflow to use proper --arg quoting.

Why not add sdk.version? MAUI's CI uses custom sdk.paths (.dotnet, $host$) with eng/common/tools.sh provisioning. Adding sdk.version creates a hard CLI constraint that fails in post-build steps where the .dotnet/ path isn't resolved. Other dotnet repos (runtime, roslyn) don't use custom paths, so their sdk.version works fine. MAUI should continue relying only on tools.dotnet.

Changes:

  • Bump tools.dotnet from 10.0.100-rtm.25523.113 to 10.0.108 (stable)
  • Fix bump-global-json.yml jq to use proper --arg quoting (was fragile string interpolation)

Context:

  • Production artifacts are built from net10.0/release branches (which have active Maestro subscriptions)
  • The merge flow from main to net10.0 resets version files, so this change does not affect production builds
  • main will still need periodic manual SDK bumps unless a Maestro subscription is added

Issues Fixed

N/A - Infrastructure/security hygiene improvement.

jfversluis and others added 2 commits June 1, 2026 12:59
- Bump tools.dotnet from stale 10.0.100-rtm.25523.113 to stable 10.0.108
- Add sdk.version field (matches tools.dotnet), aligning with runtime/roslyn/winforms
- Add rollForward: patch and allowPrerelease: false for safety (roslyn pattern)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Use --arg for proper quoting and update both .tools.dotnet and .sdk.version
from eng/Versions.props when Maestro dependency PRs land.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 1, 2026

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 35684

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 35684"

@jfversluis jfversluis requested review from Copilot and rmarinho June 1, 2026 11:02
@github-actions github-actions Bot added the area-infrastructure CI, Maestro / Coherency, upstream dependencies/versions label Jun 1, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the repository’s .NET SDK pinning in global.json to align with common dotnet repo patterns, ensuring the CLI resolves a known SDK version while keeping the existing toolset pin.

Changes:

  • Bump tools.dotnet from 10.0.100-rtm.25523.113 to 10.0.108.
  • Add sdk.version (matching tools.dotnet) plus allowPrerelease: false and rollForward: "patch" to control SDK selection behavior.

Comment thread global.json Outdated
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

Comment thread .github/workflows/bump-global-json.yml Outdated
…olution)

MAUI's CI uses eng/common/tools.sh to install the SDK into .dotnet/ based on
tools.dotnet, then uses sdk.paths for resolution. Adding sdk.version creates a
hard CLI constraint that fails in post-build steps where .dotnet/ isn't resolved.

Keep only tools.dotnet=10.0.108 (the safe stable version). The workflow jq still
uses proper --arg quoting but only sets tools.dotnet.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@jfversluis jfversluis merged commit 2b8c811 into main Jun 1, 2026
31 checks passed
@jfversluis jfversluis deleted the jfversluis/update-sdk-pin-main branch June 1, 2026 17:05
@github-actions github-actions Bot added this to the .NET 10.0 SR8 milestone Jun 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-infrastructure CI, Maestro / Coherency, upstream dependencies/versions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants