Skip to content

chore: Update Windows App SDK to 2.5.1 - #24980

Merged
MartinZikmund merged 5 commits into
masterfrom
dev/mazi/winappsdk-2.5.1
Nov 11, 2026
Merged

MartinZikmund merged 5 commits into
masterfrom
dev/mazi/winappsdk-2.5.1

Conversation

@MartinZikmund

@MartinZikmund MartinZikmund commented Oct 5, 2026 •

Copy link
Copy Markdown
Member

GitHub Issue: closes #24979

PR Type:

🏗️ Build or CI related changes

What changed? 🚀

Moves Windows App SDK from 2.4.0 to the latest stable 2.5.1 (WinUI sub-package 2.3.6 → 2.3.9) and regenerates the sync generator API surface.

  • chore: Move Windows App SDK references to 2.5.1: updates Directory.Packages.props, the Uno.Sdk WinAppSdk default, the Uno.WinUI / Graphics2DSK nuspec floors (kept in lockstep with the Uno.Sdk default so NU1605 can't happen), the pinned Windows App Runtime installer in the WinUI runtime tests CI leg (aka.ms/windowsappsdk/2.5/2.5.1/..., which resolves), ResourcesExtractor and the winui-runtime-tests skill table.
  • chore: Regenerate WinAppSDK 2.5.1 API stubs: the only surface delta is three new DirectXColorSpace values (RgbFullG10NoneP2020, RgbFullG22ExtNoneP709, RgbFullG22NoneP3).

2.5.1 keeps the same WebView2 (1.0.3719.77) and Windows SDK BuildTools (10.0.26100.4654) floors as 2.4.0, so nothing else needed to move.

Validation

  • Ran the sync generator with the CI recipe (build/ci/net11/_global.json, rc.1 SDK). references.txt confirms the inputs were WinUI 2.3.9, Foundation 2.3.12 and InteractiveExperiences 2.1.9. The committed stub matches the generator output exactly, even after the pre-commit formatter ran.
  • Uno.WinRT.Generic builds with 0 warnings and 0 errors.
  • The Windows heads against 2.5.1 (WinUI runtime tests) are left to CI.

PR Checklist ✅

The Uno.WinUI package floor on Microsoft.WindowsAppSDK goes up from 2.4.0 to 2.5.1, so Windows heads on 2.4.0 will float up to 2.5.1 (same 2.x runtime major).

🤖 Generated with Claude Code

https://claude.ai/code/session_01JZScrZMcBWPZ6XUJrDcmKd

@MartinZikmund MartinZikmund self-assigned this Oct 5, 2026
Copilot AI balanced review requested due to automatic review settings October 5, 2026 09:47
@github-actions

github-actions Bot commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @MartinZikmund's task in 1m 0s —— View job


Claude's review of this PR

  • Gather context (PR diff, changed files)
  • Review changed files against AGENTS.md rules
  • Post inline findings (if any)
  • Post summary

Verdict: ✅ Ship as-is — no inline findings.

This is a clean, mechanical dependency bump (Windows App SDK 2.4.0 → 2.5.1) with no application logic in scope, so most of the review checklist (SOLID, async/cancellation, DependencyProperty wiring, events, allocations) doesn't apply — nothing in the diff touches behavioral C# code.

Checks performed:

  • Version consistency: Directory.Packages.props, Uno.Sdk/packages.json, ResourcesExtractor.csproj, both nuspec floors (Uno.WinUI, Uno.WinUI.Graphics2DSK), the CI runtime-installer URL, the migration doc, and the winui-runtime-tests skill table all consistently move to 2.5.1 — no stale 2.4.0 references left anywhere in .csproj/.props/.json/.nuspec/.yml outside unrelated historical files under specs/.
  • Generated stub (DirectXColorSpace.cs): the three new enum values follow the exact pre-existing per-value #if __ANDROID__ || __IOS__ || __TVOS__ || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ / #endif wrapping already used for every other member in the file — consistent with sync-generator output, not a hand-edit of generated code.
  • Conventional Commits: both commits (chore: Move Windows App SDK references to 2.5.1, chore: Regenerate WinAppSDK 2.5.1 API stubs) and the PR title follow the convention.
  • Associated issue: closes Update Windows App SDK to 2.5.1 and its WinUI API surface #24979, referenced correctly.
  • No cross-cutting concerns (security, performance, test coverage) apply to a pure version-floor bump + regenerated stub.

Nothing further required from CI other than the Windows heads validation the author already deferred to CI.
·

@github-actions github-actions Bot added area/build Categorizes an issue or PR as relevant to build infrastructure kind/documentation area/sdk Categorizes an issue or PR as relevant to the Uno.Sdk labels Oct 5, 2026

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.

Copilot review overview

🟡 Changes recommended

The Graphics2DSK package does not apply the updated Windows dependency or Windows assembly to net11 consumers.

Review effort: Balanced
Findings: 1 High severity

Open (1)
What changed in this PR

Updates Windows App SDK to stable 2.5.1 and synchronizes related packaging, CI, documentation, tooling, and generated APIs.

Changes:

  • Raises Windows App SDK package and runtime versions.
  • Adds three DirectXColorSpace values.
  • Updates migration and runtime-test guidance.

Review verdict: Changes required; one packaging bug found.

File Description
src/​Uno.WinRT/​Generated/​.../​DirectXColorSpace.cs Adds generated enum values.
src/​Uno.Sdk/​packages.json Updates the SDK default.
src/​ResourcesExtractor/​ResourcesExtractor.csproj Updates the application dependency.
src/​Directory.Packages.props Updates the central package version.
doc/​articles/​migrating-to-uno-7.md Documents the new default.
build/​nuget/​Uno.WinUI.nuspec Updates Windows dependency floors.
build/​nuget/​Uno.WinUI.Graphics2DSK.nuspec Updates the net10 Windows floor.
build/​ci/​tests/​.azure-devops-tests-winappsdk.yml Installs runtime 2.5.1 in CI.
.claude/​skills/​winui-runtime-tests/​SKILL.md Updates runtime-test guidance.

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

@unodevops

Copy link
Copy Markdown
Contributor

Copilot AI balanced review requested due to automatic review settings October 7, 2026 16:06
@MartinZikmund
MartinZikmund force-pushed the dev/mazi/winappsdk-2.5.1 branch from b87eec8 to f92a539 Compare October 7, 2026 16:06

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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions

github-actions Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @MartinZikmund's task in 17s —— View job


Review of #24980

  • Reviewed the diff and the Copilot finding

Verdict: fix-first (minor). The version bump is consistent and the generated stub looks right. 1 inline finding (minor).

  • The Copilot comment about a missing net11 Windows group in Uno.WinUI.Graphics2DSK.nuspec is addressed by the latest commit, which adds the dependency group and a lib entry.
  • That new lib\net11.0-windows10.0.19041.0 entry packs the net10 build output. The inline comment has details.
  • I did not build or run anything. The Windows heads on 2.5.1 are still left to CI.

@unodevops

Copy link
Copy Markdown
Contributor

@MartinZikmund
MartinZikmund disabled auto-merge October 7, 2026 19:22
Copilot AI balanced review requested due to automatic review settings October 9, 2026 12:29
@MartinZikmund
MartinZikmund force-pushed the dev/mazi/winappsdk-2.5.1 branch from f92a539 to 180324c Compare October 9, 2026 12:29

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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions

github-actions Bot commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @MartinZikmund's task in 16s —— View job


Status of the net11 Graphics2DSK packaging finding

No new changes pushed. The latest review finding is already addressed on the branch.

  • The finding said lib\net11.0-windows10.0.19041.0 packed the net10 Windows output.
  • Commit 180324c9 (fix(nuget): Pack net11 Graphics2DSK Windows output) changes the nuspec source path to ...\Uno.WinUI.Graphics2DSK.Windows\Release\net11.0-windows10.0.19041.0\.
  • The net11.0-windows10.0.19041.0 dependency group on Microsoft.WindowsAppSDK 2.5.1 and SkiaSharp is in place.
  • The Windows project multi-targets $(NetWinAppSDKPreviousAndCurrent), so a net11 Windows output folder should exist.

I did not build or pack anything. I have not confirmed that the net11 Windows output folder exists in the CI pack job. The Windows heads on 2.5.1 are still left to CI. Please check the NuGet pack step in CI to confirm.

@unoplatform unoplatform deleted a comment from unodevops Oct 9, 2026
@unodevops

Copy link
Copy Markdown
Contributor

@morning4coffe-dev morning4coffe-dev left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Verified: the version bumps are consistent across Directory.Packages.props, Uno.Sdk packages.json, ResourcesExtractor.csproj, the Uno.WinUI and Graphics2DSK nuspecs, and the pinned runtime installer URL (2.5/2.5.1). The DirectXColorSpace delta matches the description: values 25-27 are added to the Microsoft.Graphics.DirectX stub under the same #if guard. I could not check the 2.5.1 metadata itself, because the local WinUI checkout does not contain these values.

Blocking: Tests - WinAppSDK Runtime Tests fails on this head (Azure build 238525, head 180324c). The app crashes after roughly 1,200 tests: UnhandledException LayoutCycleException "Failed to assign to property Microsoft.UI.Xaml.EventTrigger.RoutedEvent" (during When_ImageFailed). The process then exits with -1073741189 and no results file is written. The same job on current master (build 239011) passes with 6,569 results and 0 failures. That points at the 2.5.1 runtime rather than the test code. Please investigate and fix, or explain, before merge.

Notes (non-blocking):

  • Uno.WinUI.Graphics2DSK.nuspec gains a net11.0-windows dependency group and a lib\net11.0-windows10.0.19041.0 file entry. The description does not mention this. Please add it to the description, or split it into its own change.
  • The DirectXColorSpace additions appear only in the Microsoft.Graphics.DirectX stub; Windows.Graphics.DirectX is unchanged. Please confirm which namespace WinAppSDK 2.5.1 adds the values to.

@MartinZikmund
MartinZikmund force-pushed the dev/mazi/winappsdk-2.5.1 branch from 180324c to d308643 Compare October 13, 2026 18:19
@github-actions

github-actions Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @MartinZikmund's task in 21s —— View job


Status check on #24980

I couldn't see a specific request in the trigger, so I haven't changed any code. This is a status summary of what's open.

Blocking item (from the 2026-10-12 review): Tests - WinAppSDK Runtime Tests failed on head 180324c9.

  • Azure build 238525 crashed after about 1,200 tests with a LayoutCycleException on EventTrigger.RoutedEvent, during When_ImageFailed.
  • The process exited with -1073741189 and wrote no results file.
  • Master build 239011 passed with 6,569 results and 0 failures.
  • I can't read Azure DevOps logs from here, so I haven't confirmed whether this is the 2.5.1 runtime or a flaky test. Re-running the leg would show whether it reproduces. If it does, the next step is to bisect against the 2.4.0 runtime installer.

Non-blocking items:

  • The Uno.WinUI.Graphics2DSK.nuspec net11 Windows dependency group and lib entry aren't in the PR description. Please add a line for them, or split them into a separate PR.
  • The DirectXColorSpace additions appear only in the Microsoft.Graphics.DirectX stub. Please confirm that 2.5.1 doesn't also add the values to Windows.Graphics.DirectX. The sync generator check would catch a mismatch.

GitHub CI right now: 1 run passed, 5 are in progress (including the WinAppSDK Sync Generator Check), and none have failed. Azure runtime tests aren't covered by that summary.

If you want me to do something specific, such as pull the Azure logs if you can share them or draft the description update, reply with @claude and the request.
· Branch: dev/mazi/winappsdk-2.5.1

@unodevops

Copy link
Copy Markdown
Contributor

@unodevops

Copy link
Copy Markdown
Contributor

@mergify

mergify Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

This pull request is merged.

@MartinZikmund MartinZikmund added the 7.1 PRs only. For issues, use the Release field. label Oct 14, 2026
@Xiaoy312 Xiaoy312 mentioned this pull request Nov 2, 2026
2 of 5 tasks
@MartinZikmund
MartinZikmund force-pushed the dev/mazi/winappsdk-2.5.1 branch from d308643 to 03e1770 Compare November 9, 2026 14:47
Copilot AI balanced review requested due to automatic review settings November 9, 2026 14:47

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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.

@github-actions

github-actions Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @MartinZikmund's task in 16s —— View job


Status check on #24980

No specific request came with this trigger (a push to the branch), so I haven't changed any code. I didn't build or run anything.

New since the last review: commit 03e17709 (chore: Move Windows SDK BuildTools to 10.0.28000.2705). It touches Uno.WinUI.nuspec, Directory.Packages.props, ResourcesExtractor.csproj and the 7.0 migration doc.

  • The PR description still says the BuildTools floor stays at 10.0.26100.4654 and nothing else needed to move. That is now wrong. Please update the description.
  • Please also say why the BuildTools floor had to move. WinAppSDK 2.5.1 kept the 26100 floor in the original description, so the reason isn't clear from the PR.

Still open from earlier reviews:

  • Blocking: Tests - WinAppSDK Runtime Tests crashed on head 180324c9. It threw a LayoutCycleException on EventTrigger.RoutedEvent during When_ImageFailed, and the process exited with no results file. Master passed. I can't read Azure logs from here. Please check whether the run on the new head reproduces the crash. If it does, bisect against the 2.4.0 runtime installer, or against the previous BuildTools floor.
  • The Uno.WinUI.Graphics2DSK.nuspec net11 Windows group and lib entry aren't in the description. Please add a line, or split them into their own PR.
  • Please confirm whether 2.5.1 also adds the DirectXColorSpace values to Windows.Graphics.DirectX. The sync generator check should catch a mismatch.

To have me do something specific, reply with @claude and the request.
· Branch: dev/mazi/winappsdk-2.5.1

@unodevops

Copy link
Copy Markdown
Contributor

@unodevops

Copy link
Copy Markdown
Contributor

🤖 Your WebAssembly Sample App stage site is ready! Visit it here:

MartinZikmund and others added 5 commits November 10, 2026 10:01
Moves every repo-internal head, the Uno.Sdk consumer default, the
Uno.WinUI nuspec floors and the WinUI runtime tests CI installer from
2.4.0 to the latest stable 2.5.1 (WinUI sub-package 2.3.6 -> 2.3.9).

The WebView2 and Windows SDK BuildTools floors are unchanged in 2.5.1.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01JZScrZMcBWPZ6XUJrDcmKd
WinAppSDK 2.5.1 adds three DirectXColorSpace values (RgbFullG10NoneP2020,
RgbFullG22ExtNoneP709, RgbFullG22NoneP3); the rest of the surface is
unchanged from 2.4.0.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01JZScrZMcBWPZ6XUJrDcmKd
A net11.0-windows consumer resolved the generic lib/net11.0 assembly and
missed the Windows App SDK dependency. Mirror Uno.WinUI.nuspec: add the
net11 Windows dependency group and pack the Windows build there.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01EfmAYBo8zgCxmbPSXpaFZA
@MartinZikmund
MartinZikmund force-pushed the dev/mazi/winappsdk-2.5.1 branch from 03e1770 to ba1dd44 Compare November 10, 2026 09:03
Copilot AI balanced review requested due to automatic review settings November 10, 2026 09:03

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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.

@github-actions

github-actions Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @MartinZikmund's task in 12s —— View job


Status check on #24980

No specific request came with this trigger (a push to the branch), so I haven't changed any code. I didn't build or run anything.

Still open from earlier reviews:

  • Blocking: Tests - WinAppSDK Runtime Tests crashed on head 180324c9. It threw a LayoutCycleException on EventTrigger.RoutedEvent during When_ImageFailed, and the process exited with no results file. Master passed. I can't read Azure logs from here. Please check whether the run on the current head (ba1dd449) reproduces it. If it does, bisect against the 2.4.0 runtime installer, or against the previous BuildTools floor.
  • The PR description still says the BuildTools floor stays at 10.0.26100.4654. Commit ba1dd449 moved it to 10.0.28000.2705, so please update the description and say why.
  • The Uno.WinUI.Graphics2DSK.nuspec net11 Windows group and lib entry aren't in the description. Please add a line, or split them into their own PR.
  • Please confirm whether 2.5.1 also adds the DirectXColorSpace values to Windows.Graphics.DirectX. The sync generator check should catch a mismatch.

GitHub CI right now: 1 run passed, 5 are in progress (including WinAppSDK Sync Generator Check), and none have failed. Azure runtime tests aren't covered by that summary.

To have me do something specific, reply with @claude and the request.
· Branch: dev/mazi/winappsdk-2.5.1

@unodevops

Copy link
Copy Markdown
Contributor

🤖 Your WebAssembly Sample App stage site is ready! Visit it here:

@unodevops

Copy link
Copy Markdown
Contributor

@MartinZikmund
MartinZikmund merged commit 13637bb into master Nov 11, 2026
81 checks passed
@MartinZikmund
MartinZikmund deleted the dev/mazi/winappsdk-2.5.1 branch November 11, 2026 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

7.1 PRs only. For issues, use the Release field. area/build Categorizes an issue or PR as relevant to build infrastructure area/sdk Categorizes an issue or PR as relevant to the Uno.Sdk kind/documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update Windows App SDK to 2.5.1 and its WinUI API surface

6 participants