Skip to content

Remove Uno on WinUI 2 (Uno.UI) support - #906

Draft
Sergio0694 wants to merge 3 commits into
sergio0694-remove-legacy-uwpfrom
sergio0694-remove-uno-winui2
Draft

Sergio0694 wants to merge 3 commits into
sergio0694-remove-legacy-uwpfrom
sergio0694-remove-uno-winui2

Conversation

@Sergio0694

Copy link
Copy Markdown
Member

Agent assessment

Self-reported assessment, not an independent review.

Assessed revision: 107278c815362cd95e7c9cf5583b09794ffa014a

Dimension Assessment Rationale
Change confidence 8/10 ↑ Release x64 builds of the all-components solution succeed locally for uwp (WinUI 2) and wasdk (WinUI 3).
↑ Uno (WinUI 3) wasm/wpf/linuxgtk build and pack of Behaviors, SettingsControls, Converters and Extensions succeeded; restored assets have Uno.WinUI and no Uno.UI; PackageId variants are Uwp for uwp and WinUI for wasdk/Uno.
↑ Build-Toolkit-Components.ps1 -MultiTargets all -WinUIMajorVersion 2 packs only the CommunityToolkit.Uwp.* packages; -MultiTargets wasm -WinUIMajorVersion 2 now throws as intended; workflow YAML parses and the matrices expand as expected.
↓ The UWP test head discovers no tests (the shared test imports are only enabled for wasdk in tooling), and WinAppSDK tests can't run locally (no .NET 9 runtime).
↓ macos/ios/android heads (no workloads) and the CI jobs themselves were not run; depends on the unmerged tooling PR.

⚠️ Stacked on #905. The tooling submodule currently points at the unmerged Tooling-Windows-Submodule#323 (stacked on #321 and #320) and must be re-pointed to main once those merge.

Fixes

Removes Uno on WinUI 2 (Uno.UI) support, following Tooling-Windows-Submodule#323. Uno is now WinUI 3 (Uno.WinUI) only; native UWP (uwp MultiTarget, WinUI 2) is unchanged.

PR Type

  • Build or CI related changes
  • Refactoring (no functional changes, no api changes)

What is the new behavior?

  • Bumped the tooling submodule to the tooling PR branch.
  • CI: the build matrix is now an explicit include list (uwp for WinUI 2; wasdk and all Uno targets for WinUI 3) so WinUI 2 Uno legs are gone. The package job no longer passes -ExcludeMultiTargets (the tooling resolves it from -WinUIMajorVersion) and skips uno-check for WinUI 2. wasm-linux passes -MultiTargets wasm. Generate steps pass -Launch off and MSBuild builds the .slnx (vs-version [17.13,)).
  • Removed the dead IsUno AND WinUIMajorVersion == '2' blocks (and Uno.Microsoft.Xaml.Behaviors.Interactivity) from component Dependencies.props; the Uno group now just uses IsUno.
  • Removed Uno.UI mentions from component ReadMes and the root ReadMe; Uno apps are pointed to CommunityToolkit.WinUI.*. The Uno package tag is only added to the WinUI package variant.
  • Source: dropped HAS_UNO && WINUI2 conditions and an unreachable WINUI2 branch (FocusBehavior, ColorPicker, ColorToDisplayNameConverter).
  • SlnGen leftovers: removed the dotnet tool and SlnGenSolutionItem items, switched .gitignore, .vscode, .devcontainer and GenerateAllSolution.bat (default targets no longer include uwp, optional WinUI version arg) to .slnx.

Validated locally

  • GenerateAllSolution.ps1 (CI command forms) + msbuild /restore in Release: uwp/WinUI 2 and wasdk/WinUI 3 all-components solutions build with 0 errors.
  • Build-Toolkit-Components.ps1: Uno wasm,wpf,linuxgtk (WinUI 3) and all with WinUI 2 pack as described above.

PR Checklist

  • Based off latest main branch of toolkit
  • Contains NO breaking changes: CommunityToolkit.Uwp.* packages no longer ship Uno TFMs (Uno apps must use CommunityToolkit.WinUI.*).

Sergio0694 and others added 3 commits November 30, 2026 22:08
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Uno is now only supported with WinUI 3 (Uno.WinUI), following the tooling change.
- CI: explicit build matrix (uwp for WinUI 2; wasdk and all Uno targets for WinUI 3), simplified packaging and generate steps for .slnx
- Remove WinUI 2 / Uno blocks from Dependencies.props and update docs
- Remove Uno WinUI 2 conditions in source
- Remove SlnGen leftovers (dotnet tool, solution items), use .slnx

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…at defaults

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

This branch has not been deployed

No deployments
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.

1 participant