Skip to content

fix(build): Bump WindowsSdkPackageVersion to 10.0.19041.87 for WinRT.Runtime 2.3.1 - #1656

Merged
rajamatt merged 1 commit into
mainfrom
dev/mara/canary-winrt-runtime
Sep 30, 2026
Merged

rajamatt merged 1 commit into
mainfrom
dev/mara/canary-winrt-runtime

Conversation

@rajamatt

Copy link
Copy Markdown
Contributor

GitHub Issue (If applicable): N/A (canary break)

PR Type

  • Build or CI related changes

What is the current behavior?

The Uno Toolkit - Canary pipeline fails in Packages › Build_Packages (#236145). The canary bumps Uno.Sdk.Private from 7.0.0-dev.701 to 7.0.0-dev.1265, along with uno.themes 9.0.0-dev.26 and Uno.XamlMerge.Task 1.34.0-dev.3.

Root error, on Uno.Toolkit.WinUI for net10.0-windows10.0.19041:

CSC : error CS1705: Assembly 'Uno.UI.Extras' ... uses 'WinRT.Runtime, Version=2.3.1.0' which has a higher version than referenced assembly 'WinRT.Runtime, Version=2.2.0.0'
  • Directory.Build.props pins WindowsSdkPackageVersion to 10.0.19041.57, which is also the .NET 10 SDK default. That projection ships WinRT.Runtime 2.2.0.0.
  • Newer Uno 7 dev builds ship Uno.UI.Extras compiled against WinRT.Runtime 2.3.1. main is green only because it is still on 7.0.0-dev.701.
  • The ~70 Android errors in the same job are a cascade of this failure, not a separate break. They are CS0234 (Card/Chip/TabBar… not in Uno.Toolkit.UI), CS1503/CS1061 in ShadowContainer.cs, UXAML0001 utu:TabBar/utu:Divider, and CS0103 mergedpages_*.
    • When the Windows TFM of Uno.Toolkit.WinUI fails before the dependents' net10.0-android builds run, those builds compile without the Uno.Toolkit.WinUI reference.
    • Canary runs #235893 and #235934 had identical bumps and the same main head, and only #235934 hit the Android errors, because the build order differed.

What is the new behavior?

WindowsSdkPackageVersion is set to 10.0.19041.87. I checked its lib/net9.0/WinRT.Runtime.dll: AssemblyVersion is 2.3.1.0, versus 2.2.0.0 in .57. With it, the Windows TFM compiles against current Uno 7 dev builds, and the Android cascade goes away with it.

Verification, run locally in a worktree. The src/Uno.Toolkit-packages.slnf builds used the same msbuild arguments as stage-build-packages.yml (/r /m /v:m, Release, GeneratePackageOnBuild, prerelease PackageVersion), across all TFMs:

Uno.Sdk.Private WindowsSdkPackageVersion Result
7.0.0-dev.1265 (canary versions, temporary) 10.0.19041.57 ❌ CS1705 (reproduces the canary)
7.0.0-dev.1265 (canary versions, temporary) 10.0.19041.87 ✅ 0 errors, 8 packages
7.0.0-dev.701 (main as-is) 10.0.19041.87 ✅ 0 errors, 8 packages

Notes:

  • The builds used VS 18.5 MSBuild with .NET SDK 10.0.202. CI uses VS 2022 17.14 MSBuild with SDK 10.0.101, which I don't have installed locally. CS1705 is a compiler reference-version check and reproduced identically.
  • The temporary canary version bumps were reverted. The only change in this PR is the pin.
  • Not covered here: the canary's Desktop / Hot-Reload runtime tests still crash at startup. The error is FileNotFoundException: Uno.UI.Toolkit thrown from SkiaSharp.Views.Windows.GlobalStaticResources: SkiaSharp.Views.Uno.WinUI 4.151.1 still references the pre-rename assembly (uno#24010). That needs an upstream fix and is tracked separately.

PR Checklist

Please check if your PR fulfills the following requirements:

  • Tested code with current supported SDKs
  • Tested the changes where applicable:
    • UWP
    • WinUI (library build, net10.0-windows10.0.19041)
    • iOS (library build)
    • Android (library build)
    • WASM
    • MacOS
  • Updated the documentation as needed: N/A, build property only
  • Runtime Tests and/or UI Tests for the changes have been added: N/A, this is a build configuration change and the packages build above is the red/green check
  • Contains NO breaking changes
  • Associated with an issue (GitHub or internal)
  • Commits must be following the Conventional Commits specification.

Other information

  • The built net10.0-windows10.0.19041 assemblies now reference WinRT.Runtime 2.3.1. Uno 7's own Uno.UI.Extras already requires that for consumers, so this doesn't raise the effective floor for Uno 7 apps.
  • .86 also ships 2.3.1.0 (lib/net8.0). I chose .87 (lib/net9.0, "for .NET 9 and later") to match the repo's net10.0 targets.

🤖 Generated with Claude Code

…Runtime 2.3.1

- Uno 7 dev builds (seen on 7.0.0-dev.1265) ship Uno.UI.Extras compiled against WinRT.Runtime 2.3.1
- The 10.0.19041.57 projection (also the .NET 10 SDK default) ships WinRT.Runtime 2.2.0, so
  Uno.Toolkit.WinUI fails on net10.0-windows10.0.19041 with CS1705
- When that TFM fails first, the net10.0-android builds of the dependent libraries lose their
  Uno.Toolkit.WinUI reference and cascade into CS0234/CS1503/CS1061/UXAML0001 errors
- 10.0.19041.87 ships WinRT.Runtime 2.3.1.0
- Canary: https://dev.azure.com/uno-platform/1dd81cbd-cb35-41de-a570-b0df3571a196/_build/results?buildId=236145&view=results

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@rajamatt rajamatt self-assigned this Sep 29, 2026
@rajamatt
rajamatt marked this pull request as ready for review September 29, 2026 20:26
@github-actions

Copy link
Copy Markdown

@rajamatt
rajamatt enabled auto-merge (squash) September 29, 2026 20:41
@mergify

mergify Bot commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

This pull request does not currently match the merge queue conditions, so it cannot be queued from here. The box comes back if it matches again.

@rajamatt
rajamatt merged commit 4c186c5 into main Sep 30, 2026
22 checks passed
@rajamatt
rajamatt deleted the dev/mara/canary-winrt-runtime branch September 30, 2026 18:39
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