Skip to content

chore: Retarget to Uno 7.0.0-dev.1574 - #1662

Merged
MartinZikmund merged 6 commits into
mainfrom
dev/mazi/uno7-dev1542
Oct 7, 2026
Merged

MartinZikmund merged 6 commits into
mainfrom
dev/mazi/uno7-dev1542

Conversation

@MartinZikmund

@MartinZikmund MartinZikmund commented Oct 7, 2026 •

Copy link
Copy Markdown
Member

GitHub Issue (If applicable): # (internal: Uno 7.0 dev feed alignment)

PR Type

What kind of change does this PR introduce?

  • Build or CI related changes

What is the current behavior?

main builds against Uno.Sdk.Private / Uno.WinUI 7.0.0-dev.701, while Uno.Sdk 7.0.0-dev.37 pins Core 7.0.0-dev.1512 (and Toolkit 11.0.0-dev.127, built from 4c186c5). Between those Core builds, Uno 7.0 made several binary-breaking WinUI-parity changes, so the published Toolkit packages fail to load on current Uno 7.0 (Uno.Gallery crashes at startup).

A metadata reference check of the published 11.0.0-dev.127 net10.0 assemblies against the 7.0.0-dev.1542 runtime reports:

Assembly Broken references
Uno.Toolkit.WinUI Microsoft.UI.Colors, Microsoft.UI.ColorHelper (moved Uno.UI -> Uno.WinRT, no forwarder); DependencyObject.SetBinding(DependencyProperty, BindingBase) (removed); VisualState.Name / VisualStateGroup.Name setters (now internal)
Uno.Toolkit.Skia.WinUI Microsoft.UI.Colors; DependencyObject.SetBinding
Uno.Toolkit.WinUI.Material Microsoft.UI.Colors; DependencyObject.SetBinding; VisualState(Group).Name setters
Uno.Toolkit.WinUI.Cupertino Colors, ColorHelper; DependencyObject.SetBinding; VisualState(Group).Name setters
Uno.Toolkit.WinUI.Simple Microsoft.UI.Colors; DependencyObject.SetBinding; VisualState(Group).Name setters

22 findings in total. Every hand-written SetBinding call in the libraries already targets a FrameworkElement (AncestorBindingExtension, FrameworkElementExtensions, SelectorExtensions -> PipsPager), so all of these come from XAML-generated code and a recompile fixes them.

What is the new behavior?

No library source changes were needed.

After the rebuild, the same check over the rebuilt net10.0 Toolkit assemblies reports zero real findings. The only line left is Uno.Toolkit.Skia.WinUI -> DependencyObjectExtensions.RegisterDisposablePropertyChangedCallback "inaccessible", a false positive: it is internal and Uno.Toolkit.WinUI has [InternalsVisibleTo("Uno.Toolkit.Skia.WinUI")]. That line also appears for the published package.

Dependency: Uno.Themes retarget

Resolved. UnoThemesVersion was 9.0.0-dev.15, built against Uno.WinUI 7.0.0-dev.701, so the Material sample failed at startup with TypeLoadException: CommunityToolkit.WinUI.Lottie.LottieVisualSource from Uno.Material.WinUI (it took down Hosting Smoke and the Hot-Reload runtime tests in CI). It is now 9.0.0-dev.37, built against the same Uno build as Toolkit, 7.0.0-dev.1574 (unoplatform/Uno.Themes#1748, #1749).

Other first-party pins, for reference: UnoCSharpMarkupVersion 7.0.0-dev.33 (Uno.WinUI.Markup depends on Uno.WinUI 7.0.0-dev.663, also pre-dating these changes; not bumped, no newer build exists).

PR Checklist

Please check if your PR fulfills the following requirements:

  • Tested code with current supported SDKs
  • Tested the changes where applicable:
    • UWP
    • WinUI (compile only: libraries built for net10.0-windows10.0.19041 with MSBuild)
    • iOS
    • Android
    • WASM
    • MacOS
    • Skia Desktop (Win32), see Validation
  • Updated the documentation as needed: n/a
  • Runtime Tests and/or UI Tests for the changes have been added (for bug fixes / features) (if applicable): existing tests adapted, no behavior change
  • Contains NO breaking changes
  • Associated with an issue (GitHub or internal): internal Uno 7.0 alignment
  • Commits must be following the Conventional Commits specification.

Other information

Validation

  • Compile: Uno.Toolkit-packages.slnf for net10.0 (Release) and net10.0-windows10.0.19041 (Release, MSBuild.exe), 0 errors. MaterialSampleApp, SimpleSampleApp and CupertinoSampleApp for net10.0-desktop (Release), 0 errors. Material is also built in Debug.
  • Binary check: the reference resolver over the net10.0-desktop Material sample output finds 22 breaks before (published 11.0.0-dev.127) and 0 real ones after (rebuilt), for the Uno.Toolkit.* assemblies.
  • Runtime (Skia Desktop, Win32, Release):
    • With the old Themes 9.0.0-dev.15 pin, the Material sample hit the Themes TypeLoadException above (now fixed by the 9.0.0-dev.37 bump).
    • With locally rebuilt Themes assemblies (from the Themes retarget branch) swapped into the output, the Material sample starts and renders the shell and the NavigationBar page.
    • The adapted GridExtensionsTests and VisualStateExtensionsTests pass: 18/18.
    • Full runtime suite, with the same Themes swap, at 150% display scale: 940 tests, 853 passed, 87 failed, 57 skipped. The same suite on an origin/main (dev.701) build on the same machine: 858 passed, 82 failed. The 82 failures are identical in both runs (scale-sensitive AutoLayout / layout-rounding assertions such as 33.33 vs 33, plus a few timeouts) and are environmental. The only 5 new failures are TypeLoadException: Microsoft.UI.ColorHelper from the still-stale Uno.Simple.WinUI (Themes), which this run did not swap. No Toolkit regressions.
  • Local-only workarounds, not committed: -p:UnoDisableHotDesign=true and -p:UnoAppMcpVersion=2.0.0-dev.6. These work around stale SDK-pinned Hot Design / App MCP packages and are SDK-side, not Toolkit-side.
  • Known and unrelated: Debug builds of the sample hit the SafeArea.CreateWeakHandler debug assert at startup. fix(safearea): accept static lambdas in CreateWeakHandler debug assert #1655 fixes that.

Internal Issue (If applicable):

🤖 Generated with Claude Code

https://claude.ai/code/session_01LQBaU4ym35sj5Pny7iEbZG

MartinZikmund and others added 3 commits October 7, 2026 11:04
Packages built against 7.0.0-dev.701 fail to load on current Uno 7.0: Colors/ColorHelper moved to Uno.WinRT, DependencyObject.SetBinding was removed and VisualState(Group).Name setters became internal. All of them come from generated XAML code, so recompiling fixes them.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LQBaU4ym35sj5Pny7iEbZG
Uno.UI.RuntimeTests.Engine 2.0.0-dev.89 (latest) still ships XAML with the skia/not_skia prefixes that Uno 7.0 removed; the fix is pending in unoplatform/uno.ui.runtimetests.engine#227.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LQBaU4ym35sj5Pny7iEbZG
Grid attached-property accessors take a FrameworkElement and VisualState.Name is only set through x:Name, as in WinUI.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LQBaU4ym35sj5Pny7iEbZG
Copilot AI balanced review requested due to automatic review settings October 7, 2026 09:13

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

@unodevops

Copy link
Copy Markdown
Contributor

⚠️⚠️ The build 237839 has failed on Uno Toolkit - CI.

MartinZikmund and others added 2 commits October 7, 2026 18:01
First build with unoplatform/uno#24770, so Uno.WinUI.Graphics2DSK no longer
needs an undeclared Uno.WinUI.Graphics3DGL on Android.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
9.0.0-dev.15 was built against Uno.WinUI 7.0.0-dev.701, before
LottieVisualSource moved into Uno.UI, so the Material samples crashed with
TypeLoadException at startup. 9.0.0-dev.34 is built against 7.0.0-dev.1542.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@MartinZikmund MartinZikmund changed the title chore: Retarget to Uno 7.0.0-dev.1542 chore: Retarget to Uno 7.0.0-dev.1574 Oct 7, 2026
@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown

The Themes build on Uno.WinUI 7.0.0-dev.1574, the same Uno build Toolkit now
targets (unoplatform/Uno.Themes#1749).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown

@mergify

mergify Bot commented Oct 7, 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.

@MartinZikmund
MartinZikmund merged commit 2679a92 into main Oct 7, 2026
25 checks passed
@MartinZikmund
MartinZikmund deleted the dev/mazi/uno7-dev1542 branch October 7, 2026 19:34
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.

5 participants