Repository navigation
Adopt Uno.Sdk tooling on Uno Platform 7.0 - #908
Open
MartinZikmund wants to merge 27 commits into
Open
MartinZikmund wants to merge 27 commits into
MartinZikmund wants to merge 27 commits into
Conversation
Squashed recreation of #862 on current main. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01E8bkzyS24p8CYDWLUPsaPC
Matches the tooling: .NET SDK 10.0.401, Uno.Sdk 7.0.0-dev.51, MSBuild.Sdk.Extras 3.0.44. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01E8bkzyS24p8CYDWLUPsaPC
DependencyObject is a class in Uno 7, so 'class, DependencyObject' fails with CS0450. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01E8bkzyS24p8CYDWLUPsaPC
Uno 7 annotates the parameter as non-nullable. Use the overload without easing instead. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01E8bkzyS24p8CYDWLUPsaPC
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01E8bkzyS24p8CYDWLUPsaPC
Bumps tooling to the matching Uno.WinUI 7.0.0-dev.2428, which returns IList<AutomationPeer> from ListViewBaseAutomationPeer.GetChildrenCore (unoplatform/uno#25141), so the TokenizingTextBoxAutomationPeer signature shim is no longer needed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TXMNu1DnHGnhiqjJz6RnRw
Uno 7 annotates the propertyType of DependencyProperty registration for trimming, so registering a property of type System.Type flags Type's own annotated members. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TXMNu1DnHGnhiqjJz6RnRw
Uno 7 annotates ApiInformation's type name parameters for trimming, so the unqualified WinRT names fail with IL2122. XamlRoot and AccessibilitySettings.HighContrast always exist on WinUI 3, matching what Behaviors' ApiInformationHelper already does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TXMNu1DnHGnhiqjJz6RnRw
3.0.3 is built against Uno.WinUI 5, so Behavior types weren't WinUI 3 DependencyObjects on Uno 7. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TXMNu1DnHGnhiqjJz6RnRw
Uno 7 implements RichEditBox. On Uno 5 (WinUI 2) RichEditBox is still a stub, so the control builds there but isn't functional. Also fixes IsXamlRootAvailable, whose WinAppSDK/UWP branches were swapped, and a nullable Window.Current dereference on Uno 5. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TXMNu1DnHGnhiqjJz6RnRw
Builds the Uno.Sdk gallery heads against the local Converters, SettingsControls, Extensions and Triggers projects instead of the Uno 5 packages, and fixes NU1510 in net10.0 sample projects. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TXMNu1DnHGnhiqjJz6RnRw
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TXMNu1DnHGnhiqjJz6RnRw
On Uno 5 (WinUI 2) iOS and macOS controls are UIViews, whose Window, Paste and Description members clash with RichSuggestBox (CS0120, CS0108, CS0114). RichEditBox is a stub there anyway. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TXMNu1EDpoRrpP3hnDukwz
The job only built the Uno.Sdk head, so the SourceGenerators test step found no test assembly. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TXMNu1EDpoRrpP3hnDukwz
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TXMNu1EDpoRrpP3hnDukwz
Excluding Apple from WinUI 2 left the WinUI 2 iOS job with no TargetFrameworks for the project, which the solution generator still includes (restore failure). Resolve the UIView/NSObject member clashes instead: Description and Paste hide them with new, like SettingsCard.Description, and Window is fully qualified. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TXMNu1EDpoRrpP3hnDukwz
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TXMNu1EDpoRrpP3hnDukwz
Everywhere else nothing is hidden and new fails the build (CS0109). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TXMNu1EDpoRrpP3hnDukwz
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TXMNu1EDpoRrpP3hnDukwz
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TXMNu1EDpoRrpP3hnDukwz
Uno.Sdk 7.0.0-dev.132 brings Uno.WinUI 7.0.0-dev.2556, which includes unoplatform/uno#25841 (no more [DynamicallyAccessedMembers] on DependencyProperty.Register). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TXMNu1EDpoRrpP3hnDukwz
Uno no longer annotates the propertyType/ownerType parameters of DependencyProperty.Register (unoplatform/uno#25841), matching WinUI, so the warnings these silenced are gone at the source. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TXMNu1EDpoRrpP3hnDukwz
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TXMNtyvCafb6Ej7cqotkAC
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TXMNu1qcoxxQrAfPg3TT59
This was referenced Dec 1, 2026
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
The migration depends on unmerged tooling PR #325, whose submodule is absent from the checkout, requiring human confirmation of the final pinned commit and cross-platform gallery and package CI results.
No open issues 🎉
What changed in this PR
Migrates the toolkit’s WinUI 3 gallery and build pipeline to Uno.Sdk on Uno Platform 7, while retaining the legacy Uno 5 path for WinUI 2. This continues the tooling migration from #862 and supersedes #880.
Changes:
- Updates SDK and behavior-package versions, adds
win32targets, and renameslinuxgtktargets tolinux. - Adds Uno.Sdk gallery builds to Windows and Linux CI using .NET 10 target frameworks.
- Adapts controls and helpers for Uno 7 APIs and enables RichSuggestBox on Uno targets.
| File | Description |
|---|---|
global.json |
Registers Uno.Sdk and updates MSBuild.Sdk.Extras. |
components/Triggers/src/MultiTarget.props |
Adds win32 and renames the Linux target. |
components/TokenizingTextBox/src/TokenizingTextBox.Selection.cs |
Suppresses the obsolete focus fallback warning. |
components/TokenizingTextBox/src/TokenizingTextBox.cs |
Updates WinUI 3 XamlRoot detection and focus warning handling. |
components/TokenizingTextBox/src/MultiTarget.props |
Adds win32 and renames the Linux target. |
components/TabbedCommandBar/src/MultiTarget.props |
Adds win32 and renames the Linux target. |
components/TabbedCommandBar/src/CommunityToolkit.WinUI.Controls.TabbedCommandBar.csproj |
Updates the explicit MSBuild.Sdk.Extras version. |
components/TabbedCommandBar/samples/TabbedCommandBar.Samples.csproj |
Updates the sample’s MSBuild.Sdk.Extras version. |
components/Sizers/src/MultiTarget.props |
Adds win32 and renames the Linux target. |
components/SettingsControls/src/SettingsCard/SettingsCard.cs |
Suppresses the obsolete focus fallback warning. |
components/SettingsControls/src/MultiTarget.props |
Adds win32 and renames the Linux target. |
components/SettingsControls/src/Helpers/ControlHelper.cs |
Treats XamlRoot as available on WinUI 3. |
components/SettingsControls/samples/Dependencies.props |
Updates Uno WinUI behavior dependencies to 4.0.1. |
components/Segmented/src/Segmented/Segmented.cs |
Suppresses the obsolete focus fallback warning. |
components/Segmented/src/MultiTarget.props |
Adds win32 and renames the Linux target. |
components/Segmented/src/Helpers/ControlHelpers.cs |
Treats XamlRoot as available on WinUI 3. |
components/RichSuggestBox/src/RIchSuggestBox.Properties.cs |
Handles inherited member hiding on Uno 5 Apple targets. |
components/RichSuggestBox/src/RichSuggestBox.Helpers.cs |
Guards window access and corrects XamlRoot detection. |
components/RichSuggestBox/src/RichSuggestBox.Events.cs |
Handles Paste member hiding on Uno 5 Apple targets. |
components/RichSuggestBox/src/MultiTarget.props |
Enables Uno platform targets. |
components/RangeSelector/src/MultiTarget.props |
Adds win32 and renames the Linux target. |
components/Primitives/src/MultiTarget.props |
Adds win32 and renames the Linux target. |
components/MetadataControl/src/MultiTarget.props |
Adds win32 and renames the Linux target. |
components/LayoutTransformControl/src/MultiTarget.props |
Adds win32 and renames the Linux target. |
components/Helpers/src/ThemeListener.cs |
Reads high-contrast settings directly on WinUI 3. |
components/Helpers/src/MultiTarget.props |
Adds win32 and renames the Linux target. |
components/HeaderedControls/src/MultiTarget.props |
Adds win32 and renames the Linux target. |
components/Extensions/src/Tree/DependencyObjectExtensions.cs |
Limits interface-style generic constraints to legacy Uno. |
components/Extensions/src/MultiTarget.props |
Adds win32 and renames the Linux target. |
components/DeveloperTools/src/MultiTarget.props |
Adds win32 and renames the Linux target. |
components/DeveloperTools/src/FocusTracker/FocusTracker.cs |
Updates WinUI 3 focus detection and fallback warning handling. |
components/Converters/src/MultiTarget.props |
Adds win32 and renames the Linux target. |
components/ColorPicker/src/MultiTarget.props |
Adds win32 and renames the Linux target. |
components/Collections/src/MultiTarget.props |
Adds win32 and renames the Linux target. |
components/Behaviors/src/MultiTarget.props |
Adds win32 and renames the Linux target. |
components/Behaviors/src/Headers/HeaderBehaviorBase.cs |
Suppresses the obsolete focus fallback warning. |
components/Behaviors/src/Dependencies.props |
Updates Uno WinUI behavior dependencies to 4.0.1. |
components/Animations/src/MultiTarget.props |
Adds win32 and renames the Linux target. |
components/Animations/src/Expressions/CompositionExtensions.cs |
Uses the overload without easing when easing is null. |
.github/workflows/build.yml |
Updates target matrices, workloads, and Uno.Sdk gallery builds. |
Review effort: Balanced
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Supersedes #880. Same commits, now on a branch in this repo instead of my fork, so CI can publish to the PR feed (fork PRs never get the feed secrets). Nothing changed in the code. Earlier review history is in #880.
Moves the toolkit to the Uno.Sdk-based tooling on Uno Platform 7.0 (WinUI 3). This recreates #862 on Uno 7 instead of 6.x.
Important
Depends on the tooling PR CommunityToolkit/Tooling-Windows-Submodule#325 (formerly #319). The submodule pointer references that PR's branch and will move to the merged commit.
Changes
linuxgtk→linux, newwin32MultiTarget, CI for the Uno.Sdk head).global.json: .NET SDK 10.0.401, Uno.Sdk 7.0.5, MSBuild.Sdk.Extras 3.0.44.DOTNET_VERSIONandnet10.0-*TFMs.MSBuild.Sdk.Extras/3.0.23pins bumped to 3.0.44.DependencyObjectExtensions:where T : class, DependencyObjectonly on Uno 5 (HAS_UNO && WINUI2). DependencyObject is a class in Uno 7, so this was CS0450.CompositionExtensions.InsertExpressionKeyFrame: use the overload without easing wheneasingis null. Uno 7 annotates the parameter as non-nullable.TokenizingTextBoxAutomationPeer.GetChildrenCore: an#if HAS_UNO && WINUI3shim for Uno returningList<>instead ofIList<>. Fixed upstream in fix(automation): Align ListViewBaseAutomationPeer.GetChildrenCore return type with WinUI unoplatform/uno#25141; drop the shim once that ships.Validation
CommunityToolkit.App.Unobuilds fornet10.0-desktopwith 0 errors.RichTextBlock.Uno.Microsoft.Xaml.Behaviors.Interactivity.WinUIwas swapped for a local pack of feat: Update to Uno Platform 7.0 unoplatform/Uno.XamlBehaviors#36. The published 3.0.3 is built against Uno 5 and fails to compile in Behaviors/SettingsControls on Uno 7. That has since been replaced by the stable 4.0.1 package.Remaining before ready
Uno.Microsoft.Xaml.Behaviors.Interactivity.WinUIto stable 4.0.1.🤖 Generated with Claude Code
https://claude.ai/code/session_01E8bkzyS24p8CYDWLUPsaPC