Skip to content

[Windows] Bump Windows App SDK, SDK BuildTools, WebView2 and Win2D - #36891

Merged
kubaflo merged 1 commit into
net11.0from
mattleibow-bump-windows-package-versions
Jul 28, 2026
Merged

kubaflo merged 1 commit into
net11.0from
mattleibow-bump-windows-package-versions

Conversation

@mattleibow

@mattleibow mattleibow commented Jul 28, 2026 •

Copy link
Copy Markdown
Member

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

Bumps the Windows-related NuGet pins in eng/Versions.props to the latest stable releases. These four properties are consumed centrally via eng/NuGetVersions.targets (<PackageReference Update=... />), so this single file is the only change needed.

Package Property Old New
Microsoft.WindowsAppSDK MicrosoftWindowsAppSDKPackageVersion 1.8.251106002 2.3.1
Microsoft.Windows.SDK.BuildTools MicrosoftWindowsSDKBuildToolsPackageVersion 10.0.26100.4654 10.0.28000.2526
Microsoft.Web.WebView2 MicrosoftWindowsWebView2PackageVersion 1.0.3179.45 1.0.4078.44
Microsoft.Graphics.Win2D MicrosoftGraphicsWin2DPackageVersion 1.3.2 1.4.0

All four were verified as the latest listed stable versions against the NuGet flat-container index.

Windows App SDK 1.8 → 2.3.1 (major version jump)

This is the notable part of the change, so it got extra scrutiny. No source changes were required. Findings:

  • No API/namespace churn. The Microsoft.UI.Xaml surface that MAUI consumes is unchanged; Core, Controls, Essentials and Graphics.Win2D all compile against 2.3.1 with zero new errors.
  • No minimum-TFM bump. Directory.Build.targets keeps TargetPlatformMinVersion/SupportedOSPlatformVersion at 10.0.17763.0. WinAppSDK 2.x validates against WindowsSdkPackageVersion (repo value 10.0.19041.44) and that check passes unchanged.
  • Bootstrapper / packaging behavior is unchanged for us. Unpackaged apps still resolve WindowsAppSDKSelfContained=true and packaged apps still resolve WindowsPackageType=MSIX, exactly as before the bump. An unpackaged self-contained publish was verified to emit the full bootstrap set (Microsoft.WindowsAppRuntime.Bootstrap.dll, Microsoft.WindowsAppRuntime.Bootstrap.Net.dll, Microsoft.WindowsAppRuntime.dll) plus all expected .pri resources.
  • Transitive graph resolves cleanly — Microsoft.WindowsAppSDK.WinUI 2.3.0, Foundation 2.3.5, Base 2.0.4, Runtime 2.3.1, etc.

NuGet feeds

No NuGet.config change is required. All four versions were confirmed present in the dotnet-public dnceng feed already configured by the repo, and restore succeeds from the existing sources — nuget.org was not added.

Helix device tests

eng/devices/run-windows-devicetests.cmd derives the Windows App Runtime installer URL by parsing major.minor out of MicrosoftWindowsAppSDKPackageVersion, so it follows this bump automatically with no edit. Verified that the resulting channel URL https://aka.ms/windowsappsdk/2.3/latest/windowsappruntimeinstall-x64.exe resolves successfully.

Validation

All builds below were run against a fully pristine tree — artifacts/, .buildtasks/ and every obj/bin removed, with MSBuild node reuse shut down first so no stale task assemblies were reused.

Build Result
Microsoft.Maui.BuildTasks.slnf (full, incl. both Windows TFMs) ✅ 0 errors
Maui.Controls.Sample — net11.0-windows10.0.19041.0 ✅ 0 errors
Maui.Controls.Sample — net11.0-windows10.0.20348.0 ✅ 0 errors
Essentials.Sample (MSIX packaged) — net11.0-windows10.0.19041.0 ✅ 0 errors
Core.DeviceTests (MSIX packaged) — net11.0-windows10.0.19041.0 ✅ 0 errors
Core.DeviceTests (unpackaged, self-contained publish, win-x64) ✅ 0 errors

Build-only validation; no apps were launched. Warning counts are unchanged from the pre-bump baseline.

Notes

  • MicrosoftWindowsSDKBuildToolsWinAppPackageVersion is intentionally untouched — that property does not exist on net11.0 and is owned by Add Microsoft.Windows.SDK.BuildTools.WinApp dependency for Windows apps #36889.
  • src/Templates/src/cgmanifest.json contains the old version strings but is auto-generated (regenerated in CI via eng/scripts/update-cgmanifest.ps1) and is deliberately not committed here.

Update the Windows NuGet pins in eng/Versions.props to the latest stable
releases:

- Microsoft.WindowsAppSDK           1.8.251106002   -> 2.3.1
- Microsoft.Windows.SDK.BuildTools  10.0.26100.4654 -> 10.0.28000.2526
- Microsoft.Web.WebView2            1.0.3179.45     -> 1.0.4078.44
- Microsoft.Graphics.Win2D          1.3.2           -> 1.4.0

The Windows App SDK 1.8 -> 2.3.1 major bump required no source changes: the
Microsoft.UI.Xaml surface MAUI consumes is unchanged, the minimum platform
floor stays at 10.0.17763.0, and all four packages are already mirrored into
the dotnet-public feed so NuGet.config needs no new source.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 546491d2-db16-496e-97fa-41cfe758db9b
@mattleibow
mattleibow temporarily deployed to copilot-pat-pool July 28, 2026 20:04 — with GitHub Actions Inactive
@github-actions

Copy link
Copy Markdown
Contributor

🚀 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 -- 36891

Or

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

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
There may be pipelines that require an authorized user to comment /azp run to run.

@mattleibow
mattleibow temporarily deployed to copilot-pat-pool July 28, 2026 20:05 — with GitHub Actions Inactive
@mattleibow
mattleibow temporarily deployed to copilot-pat-pool July 28, 2026 20:06 — with GitHub Actions Inactive
@mattleibow
mattleibow temporarily deployed to copilot-pat-pool July 28, 2026 20:09 — with GitHub Actions Inactive
@mattleibow
mattleibow temporarily deployed to copilot-pat-pool July 28, 2026 20:10 — with GitHub Actions Inactive
@github-actions github-actions Bot added the area-infrastructure CI, Maestro / Coherency, upstream dependencies/versions label Jul 28, 2026
@mattleibow
mattleibow temporarily deployed to copilot-pat-pool July 28, 2026 20:10 — with GitHub Actions Inactive
@mattleibow mattleibow added this to the .NET 11.0-preview7 milestone Jul 28, 2026
@mattleibow
mattleibow marked this pull request as ready for review July 28, 2026 21:01
Copilot AI review requested due to automatic review settings July 28, 2026 21:01
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
There may be pipelines that require an authorized user to comment /azp run to run.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Updates centrally pinned Windows-related NuGet package versions in eng/Versions.props, which flow through eng/NuGetVersions.targets to all projects that use these dependencies (notably Windows builds/targets).

Changes:

  • Bump Microsoft.WindowsAppSDK from 1.8.251106002 to 2.3.1.
  • Bump Microsoft.Windows.SDK.BuildTools from 10.0.26100.4654 to 10.0.28000.2526.
  • Bump Microsoft.Web.WebView2 from 1.0.3179.45 to 1.0.4078.44 and Microsoft.Graphics.Win2D from 1.3.2 to 1.4.0.

@kubaflo
kubaflo merged commit 289edf2 into net11.0 Jul 28, 2026
24 of 39 checks passed
@kubaflo
kubaflo deleted the mattleibow-bump-windows-package-versions branch July 28, 2026 22:02
@MauiBot MauiBot added s/agent-changes-requested AI agent recommends changes - found a better alternative or issues s/agent-fix-pr-picked AI could not beat the PR fix - PR is the best among all candidates s/agent-reviewed PR was reviewed by AI agent workflow (full 4-phase review) labels Jul 28, 2026
@MauiBot

MauiBot commented Jul 28, 2026

Copy link
Copy Markdown
Collaborator

AI Review Summary

@mattleibow — new AI review results are available based on this last commit: 2b788d9.

Gate No Tests Confidence Low Platform Windows


🗂️ Review Sessions — click to expand
🚦 Gate — Test Before & After Fix

Gate Result: ⚠️ SKIPPED

No tests were detected in this PR.

Recommendation: Add tests to verify the fix using the write-tests-agent.


📱 UI Tests — Button,Label,Layout

Detected UI test categories: Button,Label,Layout

✅ Deep UI tests — 344 passed, 0 failed across 3 categories on platform-pool agent (replaces in-process counts above).

🧪 UI Test Execution Results (deep, platform pool)

Category Tests Snapshot diffs
Button 69/70 ✓ —
Label 91/94 ✓ —
Layout 184/188 ✓ —
📎 Download drop-deep-uitests artifact (TRX + snapshot diffs)

📋 Pre-Flight — Context & Validation

Issue: #36891 - [Windows] Bump Windows App SDK, SDK BuildTools, WebView2 and Win2D
PR: #36891 - [Windows] Bump Windows App SDK, SDK BuildTools, WebView2 and Win2D
Platforms Affected: Windows
Files Changed: 1 implementation/configuration, 0 test

Key Findings

  • PR updates only eng/Versions.props, changing four centrally consumed Windows package-version properties.
  • Gate was already skipped because no tests were detected in the PR; no gate/content.md was created or modified by this phase.
  • Public PR comments contained only dogfood instructions; no linked issue or actionable prior review comments were found in the unauthenticated public API artifacts.
  • Local working tree contains unrelated dirty changes outside the PR diff, so pre-flight file classification uses the public PR files API and PR patch as authoritative.

Code Review Summary

Verdict: NEEDS_DISCUSSION
Confidence: low
Errors: 0 | Warnings: 0 | Suggestions: 0

Key code review findings:

  • ℹ No actionable code findings; concern is validation coverage/CI visibility for a Windows dependency bump.
  • ℹ Blast radius is limited to Windows-targeted restore/build/runtime packaging paths.
  • ℹ src/Templates/src/cgmanifest.json still has old versions but is generated and should not be committed per repo instructions.

Fix Candidates

# Source Approach Test Result Files Changed Notes
PR PR #36891 Update four Windows package pins centrally in eng/Versions.props ⚠️ SKIPPED (Gate: no tests detected) eng/Versions.props Original PR

🔬 Code Review — Deep Analysis

Code Review — PR #36891

Independent Assessment

What this changes: Central Windows dependency pins in eng\Versions.props: Windows App SDK, Windows SDK BuildTools, WebView2, and Win2D.
Inferred motivation: Move MAUI Windows builds/workloads to current stable Windows packages.

Reconciliation with PR Narrative

Author claims: Patch metadata says this is a Windows dependency bump and requires no source changes.
Agreement/disagreement: The diff matches that claim. Package versions exist publicly. I could not verify PR comments or internal feed/CI claims because GitHub CLI access is unauthenticated/rate-limited.

Prior Review Reconciliation

Unable to reconcile prior ❌ findings through authenticated GitHub CLI: gh requires auth. Public API issue and review comment surfaces did not show actionable prior ❌ review findings in the saved pre-flight artifacts.

Blast Radius Assessment

  • Runs for all instances: Windows-targeted MAUI restores/builds only.
  • Startup impact: Indirect Windows runtime/package impact.
  • Static/shared state: No.

CI Status

  • Required-check result: unavailable (gh pr checks exit 4, auth required)
  • Classification: undetermined
  • Action taken: confidence capped low; no LGTM per skill rules.

Findings

No actionable ❌ Error or ⚠️ Warning findings found.

Expert reviewer noted stale src\Templates\src\cgmanifest.json; I did not carry this as actionable because repo instructions mark cgmanifest.json as generated/never-commit, and prior WinAppSDK bumps only changed eng\Versions.props.

Failure-Mode Probing

  • Windows-only consumers: Package refs are under Windows TFM conditions.
  • Package existence: All four new versions are present on NuGet.
  • Runtime installer path: 2.3 aka.ms Windows App SDK runtime URL resolves.

Verdict: NEEDS_DISCUSSION

Confidence: low
Summary: Code change is small and appears sound, but CI and prior review surfaces could not be fully verified, so the skill rules prohibit LGTM.


🛠️ Fix — Analysis & Comparison

Fix Candidates

# Source Approach Test Result Files Changed Notes
1 maui-expert-reviewer Minimal Windows SDK-family bump ✅ PASS (targeted probes) eng/Versions.props Reduces blast radius but incomplete: leaves WebView2 and Win2D old.
2 maui-expert-reviewer Runtime/UI package family bump, keep SDK BuildTools stable ✅ PASS (targeted probes) eng/Versions.props Updates UI/runtime packages but incomplete: leaves BuildTools old.
3 maui-expert-reviewer Full bump with explicit validation guard ✅ PASS (script probe) eng/scripts/Validate-WindowsDependencyPins.ps1 Keeps PR package set but adds unwired maintenance surface; not better than restore/build validation.
4 maui-expert-reviewer Full bump with existing Windows template integration coverage ⚠️ BLOCKED (environment) src/TestUtils/src/Microsoft.Maui.IntegrationTests/WindowsTemplateTest.cs Best validation-location idea, but local .dotnet lacks Microsoft.Maui.Sdk packs so the focused integration test could not run.
PR PR #36891 Direct central bump of all four Windows package pins in eng/Versions.props ⚠️ SKIPPED (Gate: no tests detected) eng/Versions.props Smallest product diff; matches stated dependency-update goal.

Cross-Pollination / Learning

Round Input from Failed or Limited Candidates New Idea? Details
1 Candidate 1 passed probes but was incomplete because it split the intended dependency update. Yes Candidate 2 updated the runtime/UI family instead of only SDK-family packages.
2 Candidate 2 passed probes but was still incomplete because it left BuildTools old. Yes Candidate 3 kept all four package bumps and explored validation as the differentiator.
3 Candidate 3 passed but added an unwired standalone script. Yes Candidate 4 moved validation into existing Windows integration-test infrastructure.
4 Candidate 4 could not run because local MAUI workload packs are missing. No Remaining meaningful alternatives are validation scope changes, not product-code fixes.

Exhausted: Yes
Selected Fix: PR #36891 — The PR's direct eng/Versions.props bump is the best product fix among tested candidates. Candidates 1 and 2 are incomplete partial updates; candidate 3 adds an unwired script; candidate 4 is a reasonable test-improvement idea but was environment-blocked and is not a demonstrably better fix.

Candidate Narratives

See:

  • CustomAgentLogsTmp/PRState/36891/PRAgent/try-fix-1/content.md
  • CustomAgentLogsTmp/PRState/36891/PRAgent/try-fix-2/content.md
  • CustomAgentLogsTmp/PRState/36891/PRAgent/try-fix-3/content.md
  • CustomAgentLogsTmp/PRState/36891/PRAgent/try-fix-4/content.md

🏁 Report — Final Recommendation

Comparative Candidate Report

Candidates compared

Candidate Result Files changed Assessment
pr Gate skipped: no tests detected eng/Versions.props Directly updates all four requested Windows dependency pins in the central version file. Smallest complete product diff.
pr-plus-reviewer Gate skipped: no tests detected; expert reviewer found no actionable inline findings eng/Versions.props Identical to pr; no reviewer feedback required source changes.
try-fix-1 Passed targeted probes eng/Versions.props Incomplete for the stated PR goal because it leaves WebView2 and Win2D at the prior versions.
try-fix-2 Passed targeted probes eng/Versions.props Incomplete for the stated PR goal because it leaves Windows SDK BuildTools at the prior version.
try-fix-3 Passed script probe eng/scripts/Validate-WindowsDependencyPins.ps1 Keeps the full bump but adds an unwired standalone validation script, creating maintenance surface without improving product behavior or existing CI coverage.
try-fix-4 Blocked by environment src/TestUtils/src/Microsoft.Maui.IntegrationTests/WindowsTemplateTest.cs Good validation-location idea, but it was not empirically proven here and adds test scope rather than changing the product fix.

Ranking

  1. pr / pr-plus-reviewer — Complete package-family update with the smallest product diff. pr-plus-reviewer is identical because expert review found no actionable changes.
  2. try-fix-3 — Complete package update plus a validation script, but the script is unwired and not a better fix than relying on restore/build/integration validation.
  3. try-fix-4 — Potentially useful future test coverage, but blocked in this environment and therefore ranked below candidates with completed validation.
  4. try-fix-1 — Passed targeted probes but is incomplete because it omits two intended dependency updates.
  5. try-fix-2 — Passed targeted probes but is incomplete because it omits the BuildTools update.

No candidate failed regression tests. Per the required ordering rule, the blocked candidate is ranked below candidates with completed validation, and incomplete candidates are ranked below complete candidates.

Winning candidate

Winner: pr

The raw PR fix wins because it is the smallest complete change that updates all four Windows dependency pins in the central version source. The expert reviewer found no actionable improvements, making pr-plus-reviewer equivalent to pr; choosing pr avoids implying there is an additional modified sandbox diff.


🧭 Next Steps — review latest findings

No alternative fix was selected for this run. Review the session findings and CI results before merging.

This branch was previously deployed

1 inactive deployment
copilot-pat-pool — 2b788d9f Deployed Jul 28, 2026 by mattleibow via conclusion #1009
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-infrastructure CI, Maestro / Coherency, upstream dependencies/versions s/agent-changes-requested AI agent recommends changes - found a better alternative or issues s/agent-fix-pr-picked AI could not beat the PR fix - PR is the best among all candidates s/agent-reviewed PR was reviewed by AI agent workflow (full 4-phase review)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants