Repository navigation
Split NuGet packages per UI framework (Uwp, WinUI, Uno) - #837
Merged
Merged
Conversation
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
force-pushed
the
sergio0694-split-uno-packages-labs
branch
from
December 5, 2026 00:31
62e87f4 to
adc43d8
Compare
Sergio0694
marked this pull request as ready for review
December 5, 2026 00:32
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.
Before merging
The
toolingsubmodule now points at toolingmain(e562b88), which includes CommunityToolkit/Tooling-Windows-Submodule#328. Branch protection currently requirespackage (2)andpackage (3); the matrix is renamed, so an admin must change the required checks topackage (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 newCommunityToolkit.Labs.Uno.*(wasm/wpf/linuxgtkshare anet10.0lib, plus maccatalyst/ios/android). A package never mixes TFMs of different frameworks, and thelib/net10.0-windows10.0.18362/_._placeholder is gone.toolingbumped to the PR branch.packagejob: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 thesign/releasematrices are keyed onmatrix.ui.sign/releasenow usedownload-artifactwithpattern+hashFilesgating so a leg with no buildable components (e.g.unowhen only uwp/wasdk components changed) no longer fails the download (not testable outside arel/*/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).packagejob runs tool restore / SDK removal / uno-check only foruno, with--target android --target ios --target macos(saves ~200s on the other legs).buildjob: only forwasm,macos,ios,android.wasmmust keep it: I verified locally that the all-components wasm head fails without thewasm-toolsworkload (UNOWA0001, native SkiaSharp assets via RivePlayer);uwp/wasdk/wpf/linuxgtkdon't need it. The git-based steps moved before the tooling steps inpackage.EnableXamlCompilerMismatchedTfmUnoWorkaroundfrom AppServices, Extensions.DependencyInjection, DependencyPropertyGenerator, Notifications.Unotag is only applied whenPackageIdVariant == 'Uno'.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 missingCommunityToolkit.Labs.Uno.DependencyPropertyGenerator(macos/ios/android only; confirmed viamsbuild -getProperty/-getItem: id, TFMsnet10.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 WinUIlib/net10.0), WinUI/Uwp packages lostnet10.0and the 31_._placeholders, RivePlayer moved from WinUI to Uno. No differences outsidelib/(analyzers, build, buildTransitive) in any package. Fixed-id packages: AppServices + Notifications only inuwp, Extensions.DependencyInjection only innone; DependencyPropertyGenerator.targetsnamed after the package id in both Uwp/WinUI.Follow-ups / things to know
CommunityToolkit.WinUI.*8.3.260402-preview2 (Adorners,CanvasView,DataTable,TokenView):CommunityToolkit.Uno.*don't exist yet. Once the Windows repo publishes them, switch theIsUnogroups in the components'Dependencies.props(probably viaCommunityToolkit.$(DependencyVariant).X).CommunityToolkit.Labs.WinUI.XtoCommunityToolkit.Labs.Uno.X; RivePlayer only exists as...Uno.RivePlayernow. New nuget.org ids (CommunityToolkit.Labs.Uno.*) need to be allowed by the trusted publishing/prefix setup.uileg still entersnuget-release-gateand publishes nothing.