Repository navigation
chore: Retarget to Uno 7.0.0-dev.1574 - #1662
Conversation
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
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://polite-field-01aa64f0f-1662.eastus2.azurestaticapps.net |
|
|
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]>
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://polite-field-01aa64f0f-1662.eastus2.azurestaticapps.net |
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]>
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://polite-field-01aa64f0f-1662.eastus2.azurestaticapps.net |
|
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. |
GitHub Issue (If applicable): # (internal: Uno 7.0 dev feed alignment)
PR Type
What kind of change does this PR introduce?
What is the current behavior?
mainbuilds againstUno.Sdk.Private/Uno.WinUI7.0.0-dev.701, whileUno.Sdk7.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.0assemblies against the 7.0.0-dev.1542 runtime reports:Microsoft.UI.Colors,Microsoft.UI.ColorHelper(movedUno.UI->Uno.WinRT, no forwarder);DependencyObject.SetBinding(DependencyProperty, BindingBase)(removed);VisualState.Name/VisualStateGroup.Namesetters (now internal)Microsoft.UI.Colors;DependencyObject.SetBindingMicrosoft.UI.Colors;DependencyObject.SetBinding;VisualState(Group).NamesettersColors,ColorHelper;DependencyObject.SetBinding;VisualState(Group).NamesettersMicrosoft.UI.Colors;DependencyObject.SetBinding;VisualState(Group).Namesetters22 findings in total. Every hand-written
SetBindingcall in the libraries already targets aFrameworkElement(AncestorBindingExtension,FrameworkElementExtensions,SelectorExtensions->PipsPager), so all of these come from XAML-generated code and a recompile fixes them.What is the new behavior?
chore(deps):Uno.Sdk.PrivateandUno.WinUI.DevServer-> 7.0.0-dev.1574 (first build with fix(2dsk): Stop referencing Graphics3DGL from Graphics2DSK uno#24770, the Graphics2DSK/Graphics3DGL fix; originally 7.0.0-dev.1542).chore(deps):UnoThemesVersion-> 9.0.0-dev.37, built against Uno.WinUI 7.0.0-dev.1574 (chore: Retarget to Uno 7.0.0-dev.1542 Uno.Themes#1748, #1749).chore(runtimetests):UXAML0007stays a warning inUno.Toolkit.RuntimeTests.Uno.UI.RuntimeTests.Engine2.0.0-dev.89 (the latest published) still shipsUnitTestsControl.xamlwith theskia:/not_skia:prefixes that Uno 7.0 removed (fix pending in fix: Replace removed skia/not_skia XAML prefixes in UnitTestsControl uno.ui.runtimetests.engine#227). The prefixes only switch between emoji and plain-text button labels, so the impact is cosmetic. Revert once the engine publishes.test: runtime tests aligned with the 7.0 WinUI-parity APIs.Grid.Get/SetRow|Column|ColumnSpantake aFrameworkElement, andVisualState.Nameis now set throughx:Name, usingXamlReader, as in WinUI.No library source changes were needed.
After the rebuild, the same check over the rebuilt
net10.0Toolkit assemblies reports zero real findings. The only line left isUno.Toolkit.Skia.WinUI -> DependencyObjectExtensions.RegisterDisposablePropertyChangedCallback"inaccessible", a false positive: it isinternalandUno.Toolkit.WinUIhas[InternalsVisibleTo("Uno.Toolkit.Skia.WinUI")]. That line also appears for the published package.Dependency: Uno.Themes retarget
Resolved.
UnoThemesVersionwas 9.0.0-dev.15, built against Uno.WinUI 7.0.0-dev.701, so the Material sample failed at startup withTypeLoadException: CommunityToolkit.WinUI.Lottie.LottieVisualSourcefromUno.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:
UnoCSharpMarkupVersion7.0.0-dev.33 (Uno.WinUI.Markupdepends 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:
net10.0-windows10.0.19041with MSBuild)Other information
Validation
Uno.Toolkit-packages.slnffornet10.0(Release) andnet10.0-windows10.0.19041(Release, MSBuild.exe), 0 errors.MaterialSampleApp,SimpleSampleAppandCupertinoSampleAppfornet10.0-desktop(Release), 0 errors. Material is also built in Debug.net10.0-desktopMaterial sample output finds 22 breaks before (published 11.0.0-dev.127) and 0 real ones after (rebuilt), for theUno.Toolkit.*assemblies.TypeLoadExceptionabove (now fixed by the 9.0.0-dev.37 bump).GridExtensionsTestsandVisualStateExtensionsTestspass: 18/18.origin/main(dev.701) build on the same machine: 858 passed, 82 failed. The 82 failures are identical in both runs (scale-sensitiveAutoLayout/ layout-rounding assertions such as33.33vs33, plus a few timeouts) and are environmental. The only 5 new failures areTypeLoadException: Microsoft.UI.ColorHelperfrom the still-staleUno.Simple.WinUI(Themes), which this run did not swap. No Toolkit regressions.-p:UnoDisableHotDesign=trueand-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.SafeArea.CreateWeakHandlerdebug 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