Repository navigation
[Windows] Bump Windows App SDK, SDK BuildTools, WebView2 and Win2D - #36891
Conversation
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
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 36891Or
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 36891" |
|
Azure Pipelines: Successfully started running 1 pipeline(s). There may be pipelines that require an authorized user to comment /azp run to run. |
|
Azure Pipelines: Successfully started running 1 pipeline(s). There may be pipelines that require an authorized user to comment /azp run to run. |
There was a problem hiding this comment.
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.WindowsAppSDKfrom1.8.251106002to2.3.1. - Bump
Microsoft.Windows.SDK.BuildToolsfrom10.0.26100.4654to10.0.28000.2526. - Bump
Microsoft.Web.WebView2from1.0.3179.45to1.0.4078.44andMicrosoft.Graphics.Win2Dfrom1.3.2to1.4.0.
AI Review Summary
🗂️ Review Sessions — click to expand🚦 Gate — Test Before & After FixGate Result:
|
| 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.mdwas 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.jsonstill 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 |
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 checksexit 4, auth required) - Classification: undetermined
- Action taken: confidence capped low; no LGTM per skill rules.
Findings
No actionable ❌ Error or
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.3aka.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 | 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 |
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.mdCustomAgentLogsTmp/PRState/36891/PRAgent/try-fix-2/content.mdCustomAgentLogsTmp/PRState/36891/PRAgent/try-fix-3/content.mdCustomAgentLogsTmp/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
pr/pr-plus-reviewer— Complete package-family update with the smallest product diff.pr-plus-revieweris identical because expert review found no actionable changes.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.try-fix-4— Potentially useful future test coverage, but blocked in this environment and therefore ranked below candidates with completed validation.try-fix-1— Passed targeted probes but is incomplete because it omits two intended dependency updates.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.
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.propsto the latest stable releases. These four properties are consumed centrally viaeng/NuGetVersions.targets(<PackageReference Update=... />), so this single file is the only change needed.Microsoft.WindowsAppSDKMicrosoftWindowsAppSDKPackageVersion1.8.2511060022.3.1Microsoft.Windows.SDK.BuildToolsMicrosoftWindowsSDKBuildToolsPackageVersion10.0.26100.465410.0.28000.2526Microsoft.Web.WebView2MicrosoftWindowsWebView2PackageVersion1.0.3179.451.0.4078.44Microsoft.Graphics.Win2DMicrosoftGraphicsWin2DPackageVersion1.3.21.4.0All 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:
Microsoft.UI.Xamlsurface that MAUI consumes is unchanged; Core, Controls, Essentials and Graphics.Win2D all compile against 2.3.1 with zero new errors.Directory.Build.targetskeepsTargetPlatformMinVersion/SupportedOSPlatformVersionat10.0.17763.0. WinAppSDK 2.x validates againstWindowsSdkPackageVersion(repo value10.0.19041.44) and that check passes unchanged.WindowsAppSDKSelfContained=trueand packaged apps still resolveWindowsPackageType=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.priresources.Microsoft.WindowsAppSDK.WinUI 2.3.0,Foundation 2.3.5,Base 2.0.4,Runtime 2.3.1, etc.NuGet feeds
No
NuGet.configchange is required. All four versions were confirmed present in thedotnet-publicdnceng feed already configured by the repo, and restore succeeds from the existing sources —nuget.orgwas not added.Helix device tests
eng/devices/run-windows-devicetests.cmdderives the Windows App Runtime installer URL by parsing major.minor out ofMicrosoftWindowsAppSDKPackageVersion, so it follows this bump automatically with no edit. Verified that the resulting channel URLhttps://aka.ms/windowsappsdk/2.3/latest/windowsappruntimeinstall-x64.exeresolves successfully.Validation
All builds below were run against a fully pristine tree —
artifacts/,.buildtasks/and everyobj/binremoved, with MSBuild node reuse shut down first so no stale task assemblies were reused.Microsoft.Maui.BuildTasks.slnf(full, incl. both Windows TFMs)Maui.Controls.Sample—net11.0-windows10.0.19041.0Maui.Controls.Sample—net11.0-windows10.0.20348.0Essentials.Sample(MSIX packaged) —net11.0-windows10.0.19041.0Core.DeviceTests(MSIX packaged) —net11.0-windows10.0.19041.0Core.DeviceTests(unpackaged, self-contained publish,win-x64)Build-only validation; no apps were launched. Warning counts are unchanged from the pre-bump baseline.
Notes
MicrosoftWindowsSDKBuildToolsWinAppPackageVersionis intentionally untouched — that property does not exist onnet11.0and is owned by Add Microsoft.Windows.SDK.BuildTools.WinApp dependency for Windows apps #36889.src/Templates/src/cgmanifest.jsoncontains the old version strings but is auto-generated (regenerated in CI viaeng/scripts/update-cgmanifest.ps1) and is deliberately not committed here.