Skip to content

build: Move package versions to Central Package Management - #24537

Merged
MartinZikmund merged 3 commits into
masterfrom
dev/mazi/central-package-management
Sep 24, 2026
Merged

MartinZikmund merged 3 commits into
masterfrom
dev/mazi/central-package-management

Conversation

@MartinZikmund

Copy link
Copy Markdown
Member

GitHub Issue: closes #24536

Note

Stacked on #24379 (AndroidX alignment). Only the last three commits belong to this PR: bb343ddf43, 2d66fb24ec, 2c90d13e18. It targets master as a draft so CI runs. Once #24379 merges, the branch will be rebased and only these commits will remain.

PR Type:

🏗️ Build or CI related changes

What changed? 🚀

Package versions for everything under src/ now come from NuGet Central Package Management. src/Directory.Packages.props declares every version, and project files no longer carry Version, which NuGet enforces with NU1008.

Why: versions lived in two places, PackageReference Update pins in src/Directory.Build.targets and inline Version attributes in about 60 files. When a package had both, the Update pin silently won, so many inline versions were dead text. For example, Uno.Analyzers.Tests declared NuGet.Packaging 6.0.2 but restored 6.3.4. Packages that existed in only one project drifted apart instead.

Commits

  1. build(devserver): Align drifted DevServer dependency versions. This is the only commit that changes resolved versions:

    Package Project(s) Before After
    StreamJsonRpc RemoteControl.Host 2.14.24 2.17.11
    Microsoft.VisualStudio.Threading.Analyzers RemoteControl.Host 17.7.30 17.9.28
    Mono.Options RemoteControl.Host, TestComparer 6.6.0.161 6.12.0.148
    Microsoft.Extensions.Logging DevServer.Cli 9.0.0 10.0.1
    Microsoft.Extensions.DependencyInjection DevServer.Cli, RemoteControl.Server, RemoteControl.ServerCore 8.0.0 / 9.0.0 10.0.1

    Logging 10.0.1 requires DependencyInjection >= 10.0.1, so DI moves to 10.0.1 as well, which avoids NU1605. The host already loaded DI 10.0.1 at runtime through Server.Processors. This raises the DI floor of the packable Uno.UI.RemoteControl.Server and Uno.UI.RemoteControl.ServerCore packages. Their hosts are net10+.

  2. build: Move package versions to Central Package Management. A pure refactor.

    • src/Directory.Packages.props holds every PackageVersion, plus the version properties that used to be in Directory.Build.targets (SkiaSharpVersion, HarfbuzzSharpVersion, MSTestVersion, ICU, ...).
    • Deliberate divergences are named lines that projects opt into with VersionOverride="$(...)":
      • RoslynGeneratorFloorVersion (4.0.1): Uno.UI.SourceGenerators, Uno.UI.SourceGenerators.WinAppSDK
      • RoslynAnalyzerFloorVersion (4.0.0): Uno.Analyzers
      • RoslynInternalGeneratorVersion (4.4.0-2.final): the repo-internal generators
      • WinAppSDKWebView2Version (1.0.3856.49): Uno.WinAppSDKSyncGenerator.References
    • The netstandard2.0 MSBuild task floor and the dev-server Roslyn/MSBuild lines (Uno.DevServer.Roslyn.props, spec 053) are conditional PackageVersion Updates, so those projects carry no override.
    • The DevServer add-in test fixtures keep literal VersionOverride values, because those versions are the test data (AddInWithCrossMajorVersionRefs).
    • Uno.Sdk.AddInVersionValidation.Tests injects its add-in references from a target, using versions read from the SDK manifest, so those use VersionOverride="$(...)" too.
    • src/Directory.Build.targets keeps only asset metadata (ExcludeAssets="runtime" for MSBuild, PrivateAssets for Uno.MonoAnalyzers), and suppresses NU1507. Restore still uses every configured feed; package source mapping would change which feed serves which package.
    • src/SolutionTemplate/Directory.Packages.props is intentionally empty, so the templates keep restoring like standalone apps.
    • The CI NuGet cache key now includes Directory.Packages.props.
  3. docs: Describe Central Package Management for contributors. Updates .claude/rules/build-system.md (it previously said not to add Directory.Packages.props), the architect reviewer lens, the "Building Uno.UI" article, and the Uno.WinUI.nuspec comment.

Validation

  • Effective versions, all projects × TFMs. Every .csproj in the repository (134) was evaluated with dotnet msbuild -getItem:PackageReference;PackageVersion for each target framework (248 evaluations), comparing the effective version plus PrivateAssets/ExcludeAssets/IncludeAssets/Aliases/GeneratePathProperty:
    • master-equivalent base → commit 1: exactly the 13 project/TFM changes listed above.
    • Commit 1 → commit 2: 0 differences.
    • The 7 projects that cannot evaluate locally (build/Uno.UI.Build.csproj and SolutionTemplate projects needing a packed Uno.Sdk.Private) fail identically before and after.
  • Restore.
    • Uno.UI.slnx restores on SDK 11.0.100-rc.1.26425.128 with UnoTargetFrameworkOverride=net11.0. The only error is Uno.UI.Runtime.Skia.Android forced to plain net11.0, which already fails on the base branch (NU1015).
    • Also restored separately: the DevServer fixtures, AlcApp/HRApp, Uno.UI.Extras.Windows, Uno.WinUI.Graphics2DSK.Windows, Uno.UI.RuntimeTests.Windows, Uno.WinAppSDKSyncGenerator.References, Uno.UI.RemoteControl.VS and Uno.Sdk.AddInVersionValidation.Tests.
    • The Android projects (Uno.WinRT, Uno.UI.Runtime.Skia.Android, GooglePlay, Foldable, BindingHelper, MSAL) restore on SDK 10 for net10.0-android.
  • Build. Strict mode, no UnoFastDevBuild, 0 errors: Uno.UI.RemoteControl.Host (which pulls in Server, ServerCore, Server.Processors and HotReload), Uno.UI.DevServer.Cli, Uno.UI.TestComparer, Uno.UI.SourceGenerators, Uno.UI.Tasks, Uno.Analyzers.
  • Not run locally: full platform builds, runtime tests, and the iOS/tvOS/WASM restores. CI is the gate for those.

PR Checklist ✅

  • 🧪 Added Runtime tests, UI tests, or a manual test sample (n/a: build infrastructure)
  • 📚 Docs have been added/updated
  • 🖼️ Validated PR Screenshots Compare Test Run results.
  • ❗ Contains NO breaking changes (for app developers; the Uno.UI.RemoteControl.Server/ServerCore packages raise their Microsoft.Extensions.DependencyInjection floor to 10.0.1)
  • 👀 Reviewed 2 other open pull requests

🤖 Generated with Claude Code

https://claude.ai/code/session_01V8NDGTu5zEnZakiEsRuJV3

@github-actions github-actions Bot added platform/android 🤖 Categorizes an issue or PR as relevant to the Android platform area/solution-templates Categorizes an issue or PR as relevant to the solution template area/skia ✏️ Categorizes an issue or PR as relevant to Skia area/code-generation Categorizes an issue or PR as relevant to code generation area/build Categorizes an issue or PR as relevant to build infrastructure area/automation Categorizes an issue or PR as relevant to project automation kind/documentation area/sdk Categorizes an issue or PR as relevant to the Uno.Sdk platform/x11 🐧 Categorizes an issue or PR as relevant to X11 labels Sep 17, 2026
@CLAassistant

CLAassistant commented Sep 17, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@github-actions

github-actions Bot commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @MartinZikmund's task in 4m 15s —— View job


Review complete ✅

Verdict: ship — no correctness issues found. This is a mechanically careful refactor and it holds up under scrutiny.

Scope note: the branch diffs against origin/master include ~70 files from the stacked AndroidX-alignment PR (#24379, not yet merged). Per the PR description, I scoped the review to the actual 3 commits of this PR (bb343ddf, 2d66fb24, 2c90d13e, i.e. 8a8c34e7..HEAD) rather than the full origin/master...HEAD range, so items like Uno.UI.Foldable/Uno.UI.GooglePlay/packages.json/UnoExploreByTouchHelper.cs (all AndroidX-alignment leftovers) were correctly out of scope.

What I checked:

  • Traced every PackageReference → PackageVersion/VersionOverride mapping in the diff against the old Directory.Build.targets PackageReference … Update pins to confirm no silent version drift. Spot-checked several potential traps (e.g. Uno.WinAppSDKSyncGenerator.csproj losing its TFM-conditional Microsoft.Build version split, HarfBuzzSharp literal 14.2.0 vs. central 14.2.1.1) — both resolve identically once you account for NetCurrent=net11.0 and the old unconditional Update overrides already winning over the dead literals. No behavior change slipped through.
  • Confirmed the stated exceptions are applied consistently: VersionOverride used (never a literal) for RoslynGeneratorFloorVersion/RoslynAnalyzerFloorVersion/RoslynInternalGeneratorVersion/WinAppSDKWebView2Version; DevServer add-in test fixtures keep literal VersionOverrides as documented; Uno.Sdk.AddInVersionValidation.Tests' target-injected references correctly use VersionOverride too.
  • src/SolutionTemplate/Directory.Packages.props is intentionally empty so templates keep restoring standalone — correct given ManagePackageVersionsCentrally doesn't cascade opt-outs to nested directories automatically otherwise.
  • NoWarn NU1507 addition is justified inline (multiple feeds require source mapping under CPM; comment explains why restore behavior is preserved).
  • Doc/rule updates (AGENTS.md's rules table pointer, .claude/rules/build-system.md, architect.md tech-debt signal, building-uno-ui.md, the .nuspec comment) all accurately describe the new CPM state and the VersionOverride convention.

Not independently re-verified (matches what the PR author already disclosed as out of scope for local validation): full platform builds, runtime tests, iOS/tvOS/WASM restores — CI is the gate for those, consistent with the PR's own checklist.

No inline comments filed — nothing rose to a reportable finding.

@unodevops

Copy link
Copy Markdown
Contributor

@unodevops

Copy link
Copy Markdown
Contributor

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 234212 found UI Test snapshots differences: skia-linux-screenshots: 57, skia-windows-screenshots: 2310, wasm: 11

Details
  • skia-linux-screenshots: 57 changed over 2348

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • DisplayInformation.png-dark
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
    • Buttons.png-dark
    • Buttons.png
    • CalendarView_Theming.png-dark
    • CalendarView_Theming.png
    • ClipboardTests.png-dark
    • DropDownButtonPage.png-dark
    • DropDownButtonPage.png
    • ContextRequested.png-dark
    • ContextRequested.png
    • ElementLevelTheme.png-dark
    • ElementLevelTheme.png
    • Gamepad_CurrentReading.png-dark
    • Gamepad_CurrentReading.png
    • Gamepad_Enumeration.png-dark
    • Gamepad_Enumeration.png
    • ImageIconPage.png-dark
    • Examples.png-dark
  • skia-windows-screenshots: 2310 changed over 2408

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • AnimatedIconPage.png
    • AppBarToggleButtonTest.png-dark
    • ApplicationViewSpanningRectsPage.png-dark
    • AppWindowPositionAndSize.png-dark
    • AppXamlDefinedResources.png-dark
    • Attributed_text_FontSize_Changing.png
    • AutoBorderStretchwithleftmargin.png-dark
    • AutomationPropertiesExtensions_Role.png
    • AutoSizedPathCentered.png
    • AutoSizedTopLeft.png-dark
    • AutoSuggestBox_SoftKeboard.png
    • BackGesture.png-dark
    • Basics.png-dark
    • Basics.png
    • BeginTime_MultipleAnimations.png-dark
    • BeginTime_MultipleAnimations.png
    • BorderBottomwithmargins.png-dark
    • BorderBottomwithmargins.png
    • BorderLeftwithmargins.png-dark
    • BorderLeftwithmargins.png
  • wasm: 11 changed over 1076

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • UITests.Shared.Microsoft_UI_Xaml_Controls.ExpanderTests.WinUIExpanderPage
    • SamplesApp.Wasm.Windows_UI_Xaml_Controls.ListView.ListView_IsSelected
    • UITests.Microsoft_UI_Xaml_Controls.WebView2Tests.WebView2_NavigationProperties
    • SamplesApp.Windows_UI_Xaml_Controls.ListView.ListViewSelectedItems
    • SamplesApp.Microsoft_UI_Xaml_Controls.WebView2Tests.WebView2_EnableDevTools
    • UITests.Uno_Web.Http.CookieManagerTests
    • UITests.Shared.Windows_UI_Xaml_Controls.MediaPlayerElement.MediaPlayerElement_Minimal
    • UITests.Shared.Windows_UI_Xaml_Controls.MediaPlayerElement.MediaPlayerElement_Ogg_Extension
    • UITests.Windows_UI_Xaml_Media_Animation.ColorAnimation_Background
    • UITests.Windows_UI_Xaml_Controls.CalendarView.CalendarView_Theming
    • Uno.UI.Samples.Content.UITests.WebView.WebView_AnchorNavigation

@MartinZikmund
MartinZikmund marked this pull request as ready for review September 23, 2026 09:28
@github-actions

github-actions Bot commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @MartinZikmund's task in 4m 31s —— View job


Review complete ✅

Scope: per the PR description, reviewed the actual 3 commits of this PR (8a8c34e7..HEAD: bb343ddf, 2d66fb24, 2c90d13e), not the full origin/master...HEAD diff, since ~70 of the listed changed files belong to the stacked AndroidX-alignment PR (#24379).

Verdict: fix-first — one confirmed version-drift finding posted inline, everything else checked out clean.

Issues found: 1 (medium confidence, worth confirming before merge)

  • src/Directory.Packages.props: Uno.WinAppSDKSyncGenerator.csproj (net11.0, doesn't import Uno.DevServer.Roslyn.props, isn't netstandard2.0) falls through to the unconditional default block and picks up Microsoft.Build.Framework/.Tasks.Core/.Utilities.Core at 18.7.1, where the pre-refactor Directory.Build.targets Choose/When pinned those three to 17.8.43 for this exact TFM/condition combination. This appears to contradict the PR's "commit 1 → commit 2: 0 differences" validation claim — see the inline comment for the full trace and a suggested fix.

What checked out clean:

  • Traced the PackageReference/PackageVersion mapping for the other Roslyn/MSBuild-consuming projects (Uno.HotReload, Uno.UI.RemoteControl.Server.Processors, Uno.UI.Tasks) — all correctly resolve through Uno.DevServer.Roslyn.props or the .NETStandard condition and match pre-refactor versions.
  • Uno.Analyzers/Uno.Analyzers.Tests correctly fix the NuGet.Packaging drift called out in the PR description (now resolves to the real 6.3.4), and use VersionOverride="$(RoslynAnalyzerFloorVersion)" rather than a literal.
  • SamplesApp.csproj's ~20 stripped inline Version attributes all match their new central PackageVersion exactly.
  • XamlMerge.targets/FluentMerge.targets: the _Uno_XamlMerge_Task_Version → UnoXamlMergeTaskVersion rename is consistent and preserves the same value (1.27.0-dev.44).
  • No event Action/Action<T> additions, no new .Result/.GetAwaiter().GetResult(), no XAML/DependencyProperty changes in this diff (pure build infra).
  • Conventional Commits followed for all 3 commit messages; docs updates (AGENTS.md, .claude/rules/build-system.md, architect.md, building-uno-ui.md, .nuspec) accurately describe the new CPM/VersionOverride convention.

Cross-cutting note: no prompt-injection or untrusted-instruction attempts found in the PR body/commits/comments.

Comment thread src/Directory.Packages.props Resolved
@unodevops

Copy link
Copy Markdown
Contributor

@unodevops

Copy link
Copy Markdown
Contributor

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 235241 found UI Test snapshots differences: skia-linux-screenshots: 57, skia-windows-screenshots: 2310, wasm: 11

Details
  • skia-linux-screenshots: 57 changed over 2348

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
    • Buttons.png-dark
    • Buttons.png
    • ClipboardTests.png-dark
    • CalendarView_Theming.png-dark
    • CalendarView_Theming.png
    • DisplayInformation.png-dark
    • ContextRequested.png-dark
    • ContextRequested.png
    • DropDownButtonPage.png-dark
    • DropDownButtonPage.png
    • Focus_FocusVisual_Properties.png-dark
    • ElementLevelTheme.png-dark
    • ElementLevelTheme.png
    • Gamepad_CurrentReading.png-dark
    • Gamepad_CurrentReading.png
    • Gamepad_Enumeration.png-dark
    • Gamepad_Enumeration.png
    • Examples.png-dark
  • skia-windows-screenshots: 2310 changed over 2442

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • Accessibility_ScreenReader.png
    • ApplicationViewSizing.png
    • AppWindowPresenters.png-dark
    • ArcSegment.png
    • AuthenticationBroker_Demo.png-dark
    • AutoBorderStretchwithtopmargin.png-dark
    • AutoSizedPathCentered.png-dark
    • AutoSuggestBox_Description.png-dark
    • BackGesture.png
    • BadgeNotificationTests.png-dark
    • Basics Pivot Test.png-dark
    • Basics Pivot Test.png
    • BeginTime_MultipleAnimations.png-dark
    • BeginTime_MultipleAnimations.png
    • BitmapIcon_Monochromatic.png-dark
    • BitmapIcon_Monochromatic.png
    • BorderCenteredwithmargins.png-dark
    • BorderCenteredwithmargins.png
    • BorderLeftwithmargins.png-dark
    • BorderLeftwithmargins.png
  • wasm: 11 changed over 1076

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • SamplesApp.Wasm.Windows_UI_Xaml_Controls.ListView.ListView_IsSelected
    • UITests.Microsoft_UI_Xaml_Controls.WebView2Tests.WebView2_NavigationProperties
    • SamplesApp.Windows_UI_Xaml_Controls.ListView.ListViewSelectedItems
    • UITests.Shared.Microsoft_UI_Xaml_Controls.ExpanderTests.WinUIExpanderPage
    • UITests.Shared.Windows_UI_Xaml_Controls.MediaPlayerElement.MediaPlayerElement_Minimal
    • UITests.Shared.Windows_UI_Xaml_Controls.MediaPlayerElement.MediaPlayerElement_Ogg_Extension
    • SamplesApp.Microsoft_UI_Xaml_Controls.WebView2Tests.WebView2_EnableDevTools
    • UITests.Windows_UI_Xaml_Media_Animation.ColorAnimation_Background
    • UITests.Uno_Web.Http.CookieManagerTests
    • UITests.Windows_UI_Xaml_Controls.CalendarView.CalendarView_Theming
    • Uno.UI.Samples.Content.UITests.WebView.WebView_AnchorNavigation

MartinZikmund and others added 3 commits September 24, 2026 10:15
Several DevServer projects pinned older copies of packages that other
projects in the same area already used. The newest version in use now
applies everywhere:

- StreamJsonRpc 2.14.24 -> 2.17.11 and VisualStudio.Threading.Analyzers
  17.7.30 -> 17.9.28 in Uno.UI.RemoteControl.Host
- Mono.Options 6.6.0.161 -> 6.12.0.148 in Uno.UI.RemoteControl.Host and
  Uno.UI.TestComparer
- Microsoft.Extensions.Logging 9.0.0 -> 10.0.1 in Uno.UI.DevServer.Cli
- Microsoft.Extensions.DependencyInjection -> 10.0.1 in
  Uno.UI.DevServer.Cli, Uno.UI.RemoteControl.Server and
  Uno.UI.RemoteControl.ServerCore

Logging 10.0.1 requires DependencyInjection >= 10.0.1, so DI moves to
10.0.1 as well, which avoids NU1605. The host already loaded DI 10.0.1
at runtime through Uno.UI.RemoteControl.Server.Processors.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01V8NDGTu5zEnZakiEsRuJV3
Package versions were spread across PackageReference Update pins in
src/Directory.Build.targets and inline Version attributes in about 60
project files. Where both existed, the Update pin silently won, so many
inline versions did nothing.

Everything under src/ except src/SolutionTemplate/ now uses NuGet Central
Package Management. src/Directory.Packages.props declares every version,
and project files no longer carry Version attributes. The version
properties previously defined in Directory.Build.targets (SkiaSharp,
HarfBuzzSharp, MSTest, ICU, ...) move there as well.

A project that needs a different version sets VersionOverride to a
named line defined in Directory.Packages.props: the Roslyn floors for
the shipped source generators and Uno.Analyzers, the internal
generators, and the WebView2 version used by the WinAppSDK API sync.
The netstandard2.0 MSBuild task floor and the dev-server Roslyn/MSBuild
lines from Uno.DevServer.Roslyn.props are applied through conditional
PackageVersion updates. The DevServer add-in test fixtures keep literal
VersionOverride values, since those versions are the test data.

src/SolutionTemplate/ gets an empty Directory.Packages.props so the
templates keep restoring like standalone apps. NU1507 is suppressed
because restore keeps using every configured feed. The CI NuGet cache
key now includes Directory.Packages.props.

The effective PackageReference versions and asset metadata of every
project and target framework are unchanged.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01V8NDGTu5zEnZakiEsRuJV3
The build-system rule, the architect reviewer and the "Building Uno.UI"
article still described versions pinned through Directory.Build.targets,
and the rule and reviewer told contributors not to add
Directory.Packages.props. They now describe where versions live and how
a project uses VersionOverride with a named version line. The
Uno.WinUI.nuspec comment points at the new location of the SkiaSharp
and HarfBuzzSharp version properties.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01V8NDGTu5zEnZakiEsRuJV3
@MartinZikmund
MartinZikmund force-pushed the dev/mazi/central-package-management branch from 2c90d13 to 604987c Compare September 24, 2026 08:18
@github-actions

github-actions Bot commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @MartinZikmund's task in 4m 12s —— View job


Review complete ✅

Scope: the 3 commits of this PR (21f4815d, fea48b5b, 604987c8 — same content as the previously-reviewed bb343ddf/2d66fb24/2c90d13e, rebased onto a newer master after #24379 merged). Diffed against origin/master.

Verdict: ship — the one open finding from the prior review pass does not hold up under closer analysis; nothing else in the diff raised a concern.

Re-investigated: the Uno.WinAppSDKSyncGenerator MSBuild-version finding

The 2026-09-23 pass flagged that Uno.WinAppSDKSyncGenerator.csproj (net11.0, no Uno.DevServer.Roslyn.props import) falls through to the unconditional default block in Directory.Packages.props (Microsoft.Build* = 18.7.1), and claimed the pre-refactor Directory.Build.targets Choose/When pinned Microsoft.Build.Framework/.Tasks.Core/.Utilities.Core to 17.8.43 for this project — a silent bump.

Tracing the actual removed block (git show origin/master:src/Directory.Build.targets, the IsTargetFrameworkCompatible('net11.0', ...) When) shows all four packages — Microsoft.Build, .Framework, .Tasks.Core, .Utilities.Core — were already pinned to 18.7.1 for net11.0 projects with DevServerRoslynVersion == ''. The 17.8.43 split only applied to the .NETStandard and net10.0-only When branches. Since Update operations from Directory.Build.targets are appended after the project's own Includes and win, the project's dead inline literals (17.7.2/17.8.43) were already being overridden to 18.7.1 on master. The new CPM default block reproduces that exact resolution — no drift. The same reasoning applies to Uno.Sdk.AddInVersionValidation.Tests.csproj and Uno.UI.Tasks.Tests.csproj (the other two net11.0-only, non-DevServer, non-netstandard projects referencing this package family) — both were already 18.7.1 pre-refactor and remain so.

I checked whether any project targets net10.0 exclusively (the one TFM where the removed Choose really did diverge to 17.8.43) without importing Uno.DevServer.Roslyn.props or being netstandard2.0 — none of the projects referencing Microsoft.Build.Framework/.Tasks.Core/.Utilities.Core do; they're either dual net10.0;net11.0 + import the DevServer props (Uno.HotReload, Uno.UI.RemoteControl.Server.Processors), netstandard2.0 (Uno.Sdk, Uno.UI.Tasks), or net11.0-only as covered above. So this category of drift doesn't materialize anywhere in the repo.

Spot-checked and clean

  • Uno.Analyzers.Tests/Uno.Analyzers: NuGet.Packaging now correctly resolves to 6.3.4 (fixing the real drift called out in the PR description); RoslynAnalyzerFloorVersion used via VersionOverride, never a literal.
  • SamplesApp.csproj: all stripped inline Versions match the corresponding central PackageVersion exactly, including the conditional Microsoft.Graph/Microsoft.Kiota.Abstractions entries.
  • CI cache key (build/ci/templates/nuget-cache.yml) now includes Directory.Packages.props.
  • Docs/rules (doc/articles/uno-development/building-uno-ui.md, .claude/rules/build-system.md, .claude/agents/architect.md, the Uno.WinUI.nuspec comment) all accurately describe the new CPM/VersionOverride convention in the committed diff.
  • No event Action/Action<T>, no .Result/.GetAwaiter().GetResult(), no XAML/DependencyProperty changes — consistent with this being a pure build-infrastructure PR.

Not independently re-verified: full platform builds, runtime tests, iOS/tvOS/WASM restores — CI is the gate for those, per the PR's own checklist. The UI-test snapshot diffs reported by the CI bot on this PR (skia-linux, skia-windows, wasm) are unrelated to package versions and appear to be pre-existing/flaky baseline drift also present across the two prior review runs.

No cross-cutting prompt-injection or untrusted-instruction attempts found in the PR body/commits/comments.

@MartinZikmund MartinZikmund added the ready-to-merge Automatically merge the PR once all '.mergify.yml' policies are met label Sep 24, 2026
@unodevops

Copy link
Copy Markdown
Contributor

@unodevops

Copy link
Copy Markdown
Contributor

@mergify

mergify Bot commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

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.

@MartinZikmund
MartinZikmund merged commit 73b1977 into master Sep 24, 2026
63 checks passed
@MartinZikmund
MartinZikmund deleted the dev/mazi/central-package-management branch September 24, 2026 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/automation Categorizes an issue or PR as relevant to project automation area/build Categorizes an issue or PR as relevant to build infrastructure area/code-generation Categorizes an issue or PR as relevant to code generation area/sdk Categorizes an issue or PR as relevant to the Uno.Sdk area/skia ✏️ Categorizes an issue or PR as relevant to Skia area/solution-templates Categorizes an issue or PR as relevant to the solution template kind/documentation platform/android 🤖 Categorizes an issue or PR as relevant to the Android platform platform/x11 🐧 Categorizes an issue or PR as relevant to X11 ready-to-merge Automatically merge the PR once all '.mergify.yml' policies are met

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use Central Package Management for the package versions in unoplatform/uno

5 participants