Skip to content

Split NuGet packages per UI framework (Uwp, WinUI, Uno) - #837

Merged
Sergio0694 merged 2 commits into
mainfrom
sergio0694-split-uno-packages-labs
Dec 5, 2026
Merged

Sergio0694 merged 2 commits into
mainfrom
sergio0694-split-uno-packages-labs

Conversation

@Sergio0694

@Sergio0694 Sergio0694 commented Dec 4, 2026 •

Copy link
Copy Markdown
Member

Before merging

The tooling submodule now points at tooling main (e562b88), which includes CommunityToolkit/Tooling-Windows-Submodule#328. Branch protection currently requires package (2) and package (3); the matrix is renamed, so an admin must change the required checks to package (none), package (uwp), package (winui), package (uno) first.

What changes

Adopts the per-UI-framework packages from Tooling-Windows-Submodule#328: CommunityToolkit.Labs.Uwp.* (uwp), CommunityToolkit.Labs.WinUI.* (wasdk, + netstandard) and the new CommunityToolkit.Labs.Uno.* (wasm/wpf/linuxgtk share a net10.0 lib, plus maccatalyst/ios/android). A package never mixes TFMs of different frameworks, and the lib/net10.0-windows10.0.18362/_._ placeholder is gone.

  • tooling bumped to the PR branch.
  • CI package job: winui: [0, 2, 3] -> ui: [none, uwp, winui, uno]; filtering and packing use -UIFramework ${{ matrix.ui }}. Artifact names (nuget-list-*, nuget-packages-*, package-logs-*, signed-nuget-packages-*) and the sign/release matrices are keyed on matrix.ui. sign/release now use download-artifact with pattern + hashFiles gating so a leg with no buildable components (e.g. uno when only uwp/wasdk components changed) no longer fails the download (not testable outside a rel/*/tag build). New Validate package count step: each buildable component must yield exactly one package per leg (the script ignores MSBuild exit codes, and the mobile TFMs have only ever been built by CI).
  • Workloads: package job runs tool restore / SDK removal / uno-check only for uno, with --target android --target ios --target macos (saves ~200s on the other legs). build job: only for wasm, macos, ios, android. wasm must keep it: I verified locally that the all-components wasm head fails without the wasm-tools workload (UNOWA0001, native SkiaSharp assets via RivePlayer); uwp/wasdk/wpf/linuxgtk don't need it. The git-based steps moved before the tooling steps in package.
  • Cleanup: removed the no-op EnableXamlCompilerMismatchedTfmUnoWorkaround from AppServices, Extensions.DependencyInjection, DependencyPropertyGenerator, Notifications.
  • Tags: the Uno tag is only applied when PackageIdVariant == 'Uno'.
  • Docs: ReadMe, Copilot instructions/skill, and the DependencyPropertyGenerator sample doc now point Uno users at CommunityToolkit.Labs.Uno.DependencyPropertyGenerator.

Verification (local, same flow as the CI, 0.1.261204-pull-1.1)

Baseline = old tooling c001882, -MultiTargets all -WinUIMajorVersion 0|2|3 (36 packages); new = -UIFramework none|uwp|winui|uno (45 packages, 45 distinct ids; none 1, uwp 18, winui 16, uno 10). Mobile TFMs excluded locally (workloads not usable on the machine), so the Uno set is missing CommunityToolkit.Labs.Uno.DependencyPropertyGenerator (macos/ios/android only; confirmed via msbuild -getProperty/-getItem: id, TFMs net10.0-maccatalyst;net10.0-ios;net10.0-android, build|buildTransitive/CommunityToolkit.Labs.Uno.DependencyPropertyGenerator.targets, analyzers/dotnet/roslyn4.12/cs). Not verified locally: mobile TFM packing; the CI run on this PR is the first.

Differences vs baseline are only the expected ones: Uno packages now own lib/net10.0 (same file sets as the old WinUI lib/net10.0), WinUI/Uwp packages lost net10.0 and the 31 _._ placeholders, RivePlayer moved from WinUI to Uno. No differences outside lib/ (analyzers, build, buildTransitive) in any package. Fixed-id packages: AppServices + Notifications only in uwp, Extensions.DependencyInjection only in none; DependencyPropertyGenerator .targets named after the package id in both Uwp/WinUI.

Follow-ups / things to know

  • Uno packages still depend on the released CommunityToolkit.WinUI.* 8.3.260402-preview2 (Adorners, CanvasView, DataTable, TokenView): CommunityToolkit.Uno.* don't exist yet. Once the Windows repo publishes them, switch the IsUno groups in the components' Dependencies.props (probably via CommunityToolkit.$(DependencyVariant).X).
  • Breaking for consumers: Uno apps must move from CommunityToolkit.Labs.WinUI.X to CommunityToolkit.Labs.Uno.X; RivePlayer only exists as ...Uno.RivePlayer now. New nuget.org ids (CommunityToolkit.Labs.Uno.*) need to be allowed by the trusted publishing/prefix setup.
  • Release approvals: an empty ui leg still enters nuget-release-gate and publishes nothing.

Sergio0694 and others added 2 commits December 4, 2026 16:31
Bump tooling to include Tooling-Windows-Submodule#328, pack once per UI framework (none, uwp, winui, uno) in CI, only install workloads where needed, and remove the no-op EnableXamlCompilerMismatchedTfmUnoWorkaround property.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@Sergio0694
Sergio0694 force-pushed the sergio0694-split-uno-packages-labs branch from 62e87f4 to adc43d8 Compare December 5, 2026 00:31
@Sergio0694
Sergio0694 marked this pull request as ready for review December 5, 2026 00:32
@Sergio0694
Sergio0694 merged commit b7a5051 into main Dec 5, 2026
17 checks passed
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