Skip to content

chore: Move Uno.Core.Extensions to 5.0.0-dev.28 - #24403

Merged
MartinZikmund merged 3 commits into
masterfrom
dev/mazi/deps-2342-unocore-drift
Sep 10, 2026
Merged

MartinZikmund merged 3 commits into
masterfrom
dev/mazi/deps-2342-unocore-drift

Conversation

@MartinZikmund

@MartinZikmund MartinZikmund commented Sep 4, 2026 •

Copy link
Copy Markdown
Member

GitHub Issue: closes #24402

PR Type:

🐞 Bugfix

What changed? 🚀

Every Uno.Core.Extensions.* reference in the repo now resolves to one version, and that version is 5.0.0-dev.28.

Two commits, in order:

  1. Collapse the drift onto a single version (4.1.1). Three live versions of one transitive dependency coexisted inside a single major: the central Update pins said 4.0.1, the Uno.Sdk manifest already shipped 4.1.1, and the solution-template heads hardcoded 4.0.1 out of reach of the central pins. This is what Uno.Core.Extensions.* is pinned at three different versions across the repo #24402 asks for.
  2. Move that single version to 5.0.0-dev.28. With exactly one place per scheme left to change, the bump is mechanical — and it takes CommonServiceLocator out of the graph.
Change Files
Central Update pins → 5.0.0-dev.28 (6 packages) src/Directory.Build.targets
New central pin for Uno.Core.Extensions.Threading (it had none) src/Directory.Build.targets
Uno.Sdk CoreLogging group → 5.0.0-dev.28 src/Uno.Sdk/packages.json
Hardcoded version bumped in place 4 × src/SolutionTemplate/**
Dead inline Version= removed → versionless Win32 media player, Uno.HotReload, RemoteControl.Server.Processors
ServiceLocator → LogExtensionPoint.ServiceProvider src/Uno.UI.RemoteControl.Host/
16 dead using CommonServiceLocator; removed src/Uno.UI.UnitTests/**

Why 5.0.0-dev.28 specifically

unoplatform/Uno.Core#94 replaces the ServiceLocator lookup in LogExtensionPoint.GetFactory() with System.IServiceProvider, dropping the CommonServiceLocator PackageReference from Uno.Core.Extensions.Logging.Singleton. Because that package is referenced by Uno.WinUI, CommonServiceLocator.dll was being redistributed inside every Uno application.

It is licensed MS-PL, which the FSF classifies as incompatible with the GPL — the only non-permissive licence in the shipped dependency graph, and a real problem for GPL/AGPL apps built on Uno. The package itself is Microsoft.Practices.ServiceLocation, copyright Microsoft 2008, predating Microsoft.Extensions.DependencyInjection.

What the bump actually changes

Both versions of all six packages were pulled from nuget.org and their nuspecs compared group by group. Target-framework sets are identical, and dependency sets are identical everywhere except one edge:

Package 4.1.1 → 5.0.0-dev.28
Uno.Core.Extensions.Logging.Singleton drops CommonServiceLocator 2.0.5
Uno.Core.Extensions.Compatibility keeps CommonServiceLocator — it exposes IServiceLocator in its public API by design, and is not shipped inside Uno apps
Uno.Core.Extensions, .Logging, .Disposables, .Threading unchanged (never referenced it)

So this is a major-version bump whose only graph-visible effect in this repo is the edge we want gone.

The two consumers that relied on the transitive namespace

CommonServiceLocator reached both of these only by flowing through Logging.Singleton, so both stop compiling on the bump.

Uno.UI.RemoteControl.Host handed Uno.Core logging an ILoggerFactory via ServiceLocator.SetLocatorProvider(…), using an internal class ServiceLocatorAdapter : IServiceLocator that existed for no other purpose. Startup.cs collapses to the documented replacement:

// Lets Uno.Core logging resolve the host's ILoggerFactory.
LogExtensionPoint.ServiceProvider = services;

and ServiceLocatorAdapter.cs is deleted.

Worth flagging for reviewers: that wiring was already inert. Program.cs assigns LogExtensionPoint.AmbientLoggerFactory eagerly during init, and again right after Startup.Configure; GetFactory() only runs while the factory is still null, so neither the old locator nor the new ServiceProvider is ever consulted in the DevServer. It is kept as a behaviour-preserving 1:1 replacement rather than deleted, because removing a latent fallback is a separate call from a dependency bump. Say the word and it goes.

Uno.UI.UnitTests carried using CommonServiceLocator; in 16 files, none of which referenced anything from that namespace. Each was verified unused before removal — the directive was the file's only occurrence of the string ServiceLocator.

Two things #24402 got wrong, corrected in the first commit

Only one add-in hardcoded a version, not five. Uno.UI.MediaPlayer.Skia.Win32 is the only one; X11, WebView.X11, Graphics3DGL and SpellChecking were already versionless and central-Update-driven.

And that one hardcode was already dead text. A PackageReference Update overrides an inline Version — verified with a synthetic project (inline 1.0.0 + Update 9.9.9 → evaluates to 9.9.9). Those attributes did nothing, so they are removed rather than bumped.

Uno.Core.Extensions.Threading turned out to be the only sibling with no central pin at all, which is why its two consumers carried inline versions. It gets one, and they join the central scheme.

The four remaining src/SolutionTemplate/** heads are bumped in place rather than made versionless, because src/SolutionTemplate/Directory.Build.targets is deliberately empty — "we don't want our Directory.Build.targets in src to affect building the templates" — so the central pins never reach them.

Also considered and rejected

Severing the logging adapter's Uno.Core dependency outright. Uno.Extensions.LogExtensionPoint.AmbientLoggerFactory is written by every app template's App.xaml.cs, so it is de-facto public API, and Uno.Core.Extensions.Logging — though unused by the adapter's own four source files — is the channel through which Uno.Logging.LogExtensions (this.Log()) reaches app code. 26 files in this repo alone carry using Uno.Logging;, and SamplesApp.csproj documents relying on that transitive flow. With CommonServiceLocator now gone from .Singleton, dropping it would buy nothing at real consumer cost.

Validation ✅

Rebased onto master (68 commits). The one conflict was src/SolutionTemplate/MyAppXamlTrim/MyAppXamlTrim.UWP/MyAppXamlTrim.Uwp.csproj, deleted upstream by 688be80c53 "chore: Remove the unbuildable MyAppXamlTrim fixture" — the deletion is taken, so this PR touches four template heads rather than the five that existed when it was opened.

Package availability — checked before bumping. All six packages publish 5.0.0-dev.28 on nuget.org (queried via the flat-container index). No invented version numbers.

Restore graph — ran locally. Resolved versions read out of project.assets.json after restore, alongside the CommonServiceLocator occurrence count in the same file:

Uno.UI.Adapter.Microsoft.Extensions.Logging   .Logging + .Logging.Singleton = 5.0.0-dev.28        CSL: 0
Uno.WinUI.SpellChecking                       .Logging + .Logging.Singleton = 5.0.0-dev.28        CSL: 0
Uno.HotReload                                 UCE + .Disposables + .Threading = 5.0.0-dev.28      CSL: 0
Uno.UI.RemoteControl.Server.Processors        + .Logging.Singleton            = 5.0.0-dev.28      CSL: 0
Uno.UI.RemoteControl.Server / .ServerCore / .Host      .Logging.Singleton = 5.0.0-dev.28          CSL: 0

Uno.Core.Extensions.Threading = 5.0.0-dev.28 on now-versionless references is what proves the new central pin works — they would otherwise emit NU1604. And CSL: 0 on the adapter is the consumer-facing outcome: that project is how CommonServiceLocator.dll entered every app.

Compile — ran locally after the rebase, two legs, both with UnoFastDevBuild off so analyzers ran.

  • Uno.UI.RemoteControl.Host + its 5 project dependencies — Build succeeded, 0 errors, on the migrated LogExtensionPoint.ServiceProvider code. CommonServiceLocator.dll no longer appears anywhere under its bin/. One warning: CA1014 (Mark assemblies with CLSCompliant) on Uno.HotReload — pre-existing, not from this PR. Confirmed by building Uno.HotReload from a throwaway worktree at plain origin/master with --no-incremental: identical warning, same project.
  • Uno.UI.UnitTests (which pulls Uno.UI, Uno.WinRT, Uno.Foundation, the source generators and the view libraries) — Build succeeded, 0 warnings / 0 errors, covering the 16 removed using directives.

Encoding. All 25 touched files verified byte-level to retain their original UTF-8 BOM presence and CRLF line endings.

Sweep. No Uno.Core.* reference at 4.1.1 or 4.0.1 remains in any .csproj / .props / .targets / .json; the repo has no packages.lock.json to refresh.

Not validated, and reviewers should weigh these:

  1. No pack was run, so the shipped dependency floors in the affected nuspecs are not confirmed to have moved. That is the consumer-facing artifact; CI's pack leg is the gate.
  2. The four src/SolutionTemplate/** heads were not built. They sit outside the central pins by design and are only exercised by the template-test legs, all currently condition: false.
  3. No behavioural review of the full 4.1.1 → 5.0.0 delta beyond the nuspec comparison above. The nuspecs prove the dependency and TFM surface is unchanged apart from the CommonServiceLocator edge; they say nothing about IL-level changes inside the assemblies.
  4. This pins a prerelease. 5.0.0-dev.28 is a dev build, not a stable release, and should be re-pinned to a stable 5.0.0 before 7.0 ships.
  5. No runtime run of the DevServer. The logging migration is validated by compile and by reading GetFactory(), not by starting the host and observing log output — mitigated by the wiring being inert (above), but stated plainly.

PR Checklist ✅

Breaking changes — two, both narrow.

  1. Dependency floor. Six published packages move their recorded Uno.Core.Extensions.* floor from 4.0.1/4.1.1 to 5.0.0-dev.28. A consumer explicitly pinning 4.x — via Central Package Management, a packages.lock.json or a plain PackageReference — gets NU1605. Few apps reference Uno.Core directly, so the blast radius is small, but it is real and belongs in the 7.0 release notes.
  2. ServiceLocator no longer supplies the logger factory. Any consumer that fed Uno logging through ServiceLocator.SetLocatorProvider(…) must assign LogExtensionPoint.ServiceProvider instead. Apps using Microsoft.Extensions.DependencyInjection — i.e. everything generated from the templates — are unaffected, since that path already fell through to a default LoggerFactory.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LejXBpaCfD8kr3VSfSHXxE

Copilot AI lite review requested due to automatic review settings September 4, 2026 14:28
@github-actions github-actions Bot added the area/solution-templates Categorizes an issue or PR as relevant to the solution template label Sep 4, 2026
@github-actions

github-actions Bot commented Sep 4, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @MartinZikmund's task in 52s —— View job


Review complete ✅

  • Gather context (diff, changed files)
  • Review src/Directory.Build.targets central pin changes
  • Review AddIns csproj changes (Win32 media player, HotReload, RemoteControl.Server.Processors)
  • Review src/SolutionTemplate/** hardcoded bumps
  • Post inline findings (if any)
  • Post summary verdict

Verdict: ship. No inline findings — this is a clean, mechanical dependency-pin bump with no code-quality, architecture, or async/cross-platform concerns.

Verified independently:

  • git ls-files … | grep 4.0.1 sweep confirmed: zero remaining Uno.Core.Extensions.* references at 4.0.1 anywhere in the repo.
  • src/Uno.Sdk/packages.json does pin Uno.Core.Extensions.Logging.Singleton at 4.1.1 already, matching the PR's premise.
  • src/SolutionTemplate/Directory.Build.targets is confirmed empty by design (comment: "We don't want our Directory.Build.targets in src to affect building the templates"), which is why those 5 template heads correctly needed in-place version bumps rather than becoming versionless like the rest.
  • No other .props/.targets file defines a competing pin for Uno.Core.Extensions.Threading; the only other hit for that name is unrelated vendored source-linking in Uno.Foundation/Uno.Core.Extensions/Uno.Core.Extensions.props (compile-item links, not a package reference).
  • Commit message follows Conventional Commits (chore: …).

Cross-cutting note (non-blocking): the PR description is unusually transparent about scope-narrowing versus the linked private issue (declines to remove CommonServiceLocator, declines to sever the Uno.Core logging dependency) and calls out the recorded dependency-floor bump as a narrow breaking change for the 7.0 release notes — that framing looks accurate based on the diff and should carry through to release notes as flagged.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The changes consistently centralize dependency versions (and adjust template-local pins where needed) without introducing any verified build or packaging issues in the edited files.

Pull request overview

Aligns all Uno.Core.Extensions.* package references in the repo to resolve to 4.1.1, matching the version already shipped by Uno.Sdk, and removes stale inline version overrides where central PackageReference Update is intended to drive the version.

Changes:

  • Bump central PackageReference Update pins in src/Directory.Build.targets from 4.0.1 → 4.1.1, and add a new central pin for Uno.Core.Extensions.Threading.
  • Remove inline Version="4.0.1" from project PackageReferences now covered by central pins (HotReload, RemoteControl processors, Win32 media player add-in).
  • Update SolutionTemplate project heads that intentionally don’t inherit repo-wide Directory.Build.targets to use Uno.Core.Extensions.Logging.Singleton 4.1.1.
File summaries
File Description
src/Uno.UI.RemoteControl.Server.Processors/Uno.UI.RemoteControl.Server.Processors.csproj Removes inline Uno.Core.Extensions.Threading version to rely on central pin.
src/Uno.HotReload/Uno.HotReload.csproj Removes inline Uno.Core.Extensions.Threading version to rely on central pin.
src/SolutionTemplate/UnoAppWinUILinuxValidation/UnoAppWinUILinuxValidation/UnoAppWinUILinuxValidation.csproj Bumps template-local Uno.Core.Extensions.Logging.Singleton to 4.1.1.
src/SolutionTemplate/UnoAppWinUILinuxValidation/UnoAppWinUILinuxValidation.Windows/UnoAppWinUILinuxValidation.Windows.csproj Bumps template-local Uno.Core.Extensions.Logging.Singleton to 4.1.1.
src/SolutionTemplate/UnoAppWinUI/UnoAppWinUI/UnoAppWinUI.csproj Bumps template-local Uno.Core.Extensions.Logging.Singleton to 4.1.1.
src/SolutionTemplate/UnoAppWinUI/UnoAppWinUI.Windows/UnoAppWinUI.Windows.csproj Bumps template-local Uno.Core.Extensions.Logging.Singleton to 4.1.1.
src/SolutionTemplate/MyAppXamlTrim/MyAppXamlTrim.UWP/MyAppXamlTrim.Uwp.csproj Bumps template-local Uno.Core.Extensions.Logging.Singleton to 4.1.1.
src/Directory.Build.targets Centralizes all relevant Uno.Core.Extensions.* pins at 4.1.1 (including newly-added Threading).
src/AddIns/Uno.UI.MediaPlayer.Skia.Win32/Uno.UI.MediaPlayer.Skia.Win32.csproj Removes inline Uno.Core.Extensions.Logging* versions to rely on central pins.
Review details
  • Files reviewed: 9/9 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

@unodevops

Copy link
Copy Markdown
Contributor

@unodevops

Copy link
Copy Markdown
Contributor

⚠️⚠️ The build 232124 has failed on Uno.UI - CI.

Copilot AI review requested due to automatic review settings September 8, 2026 14:45
@github-actions github-actions Bot added area/automation Categorizes an issue or PR as relevant to project automation area/sdk Categorizes an issue or PR as relevant to the Uno.Sdk labels Sep 8, 2026
@MartinZikmund MartinZikmund changed the title chore: Put every Uno.Core.Extensions reference on 4.1.1 chore: Move Uno.Core.Extensions to 5.0.0-dev.28 Sep 8, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Multiple changes (central pins, Uno.Sdk, templates, and RemoteControl.Host wiring) conflict with the PR’s stated target version/scope and need reconciliation before merge.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Review details

Suppressed comments (1)

src/Directory.Build.targets:131

  • This adds a new central pin for Uno.Core.Extensions.Threading, but it also uses 5.0.0-dev.28 which contradicts the PR's stated target version (4.1.1). Please align the version here with the chosen repo-wide target, and update the PR metadata accordingly.
		<PackageReference Update="Uno.Core.Extensions.Threading" Version="5.0.0-dev.28" />
  • Files reviewed: 28/28 changed files
  • Comments generated: 8
  • Review effort level: Lite

Comment thread src/Directory.Build.targets Resolved
Comment thread src/Uno.Sdk/packages.json Resolved
MartinZikmund and others added 2 commits September 8, 2026 17:14
Three live versions of one transitive dependency existed inside a single major:
src/Directory.Build.targets pinned 4.0.1, the Uno.Sdk manifest already pinned
the CoreLogging group at 4.1.1, and four solution-template heads hardcoded
4.0.1 out of reach of the central Update.

Uno.Core.Extensions.Threading had no central Update at all, so its two
consumers carried inline versions; it gains one and they become versionless,
matching every other add-in.

The inline versions on the Win32 media player were already dead text -- a
PackageReference Update overrides an inline Version -- so they are removed
rather than bumped. The four template heads are bumped in place, because
src/SolutionTemplate/Directory.Build.targets is deliberately empty so the
central pins never reach them.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01H8QhvftkoDBoNJN2iTLkUZ
Uno.Core#94 removes the CommonServiceLocator dependency from
Uno.Core.Extensions.Logging.Singleton, so CommonServiceLocator.dll stops
shipping inside every Uno application. Its MS-PL licence is the only
non-permissive one in the shipped graph, and it is incompatible with
GPL/AGPL apps built on Uno.

The dependency is dropped from Logging.Singleton only; the rest of the
5.0.0-dev.28 packages are unchanged against 4.1.1, same target
frameworks and same dependency sets.

Two consumers relied on the namespace arriving transitively:

- The DevServer host handed Uno.Core logging an ILoggerFactory through
  ServiceLocator.SetLocatorProvider. That path is now
  LogExtensionPoint.ServiceProvider, and ServiceLocatorAdapter -- which
  existed only to satisfy IServiceLocator -- goes with it.
- Sixteen Uno.UI.UnitTests files carried a `using CommonServiceLocator;`
  that no code in them used.

Uno.Sdk's CoreLogging group and the four solution-template heads are
bumped alongside the central pins, the templates because
src/SolutionTemplate/Directory.Build.targets is deliberately empty.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01LejXBpaCfD8kr3VSfSHXxE
Copilot AI review requested due to automatic review settings September 8, 2026 15:15
@MartinZikmund
MartinZikmund force-pushed the dev/mazi/deps-2342-unocore-drift branch from f57c356 to 53ee405 Compare September 8, 2026 15:15
@github-actions

github-actions Bot commented Sep 8, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @MartinZikmund's task in 1m 37s —— View job


Review complete ✅

  • Gather context (diff, changed files, CI status)
  • Review src/Directory.Build.targets / src/Uno.Sdk/packages.json central pin changes
  • Review src/Uno.UI.RemoteControl.Host/Startup.cs + deleted ServiceLocatorAdapter.cs
  • Review SolutionTemplate hardcoded version bumps
  • Review Uno.UI.UnitTests using CommonServiceLocator; removals
  • Review AddIns csproj changes (Win32 media player, HotReload, RemoteControl.Server.Processors)
  • Check CI status
  • Post inline findings (none — see below)
  • Post summary verdict

Verdict: ship. No inline findings. This is a clean, mechanical version-bump PR with no architecture, correctness, async/cancellation, or cross-platform issues.

Independently verified against origin/master...HEAD:

  • Repo-wide sweep found zero remaining Uno.Core.Extensions.* references at 4.0.1/4.1.1 — Directory.Build.targets, Uno.Sdk/packages.json, all 5 SolutionTemplate heads, and the 3 versionless AddIn/HotReload/Processors references all consistently resolve to 5.0.0-dev.28.
  • Repo-wide sweep found zero remaining CommonServiceLocator references (code or PackageReference) after the Startup.cs migration and the 16 unit-test using removals.
  • Startup.cs correctly imports Uno.Extensions (for LogExtensionPoint); the 16 removed using CommonServiceLocator; directives in Uno.UI.UnitTests were indeed otherwise-unused.
  • Confirmed no other file references the deleted ServiceLocatorAdapter/IServiceLocator, and confirmed Program.cs sets LogExtensionPoint.AmbientLoggerFactory eagerly (lines 113 and 240) before Startup.Configure runs — supporting the PR's claim that the new LogExtensionPoint.ServiceProvider assignment is a behavior-preserving, currently-inert replacement rather than a functional change.

Cross-cutting note (non-blocking): the two most recent copilot-pull-request-reviewer inline comments (flagging a "4.1.1 vs 5.0.0-dev.28" mismatch across Directory.Build.targets, Uno.Sdk/packages.json, and the templates) do not match the current state of the branch — every one of those files is consistently on 5.0.0-dev.28 as verified above. That review appears to have been generated against an earlier revision (the first of the two commits, which only landed 4.1.1) and is stale relative to the current HEAD; no action needed.

  • The Azure DevOps Uno.UI - CI failure noted in a 2026-09-04 comment (build 232124) predates the current HEAD and isn't visible through the GitHub Actions tooling available to this review — worth a manual re-check that it's green on the latest push before merge, since it isn't covered here.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

It applies a repo-wide major-version prerelease dependency floor bump with packaging/template impact that’s not fully verifiable here without running the pack/template-validation legs.

Review details
  • Files reviewed: 27/27 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

@unodevops

Copy link
Copy Markdown
Contributor

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 232585 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) 🚨🚨
    • CalendarView_Theming.png-dark
    • CalendarView_Theming.png
    • Buttons.png-dark
    • Buttons.png
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
    • ClipboardTests.png-dark
    • Examples.png-dark
    • Examples.png
    • ExpanderColorValidationPage.png-dark
    • ExpanderColorValidationPage.png
    • ContextRequested.png-dark
    • ContextRequested.png
    • DropDownButtonPage.png-dark
    • DropDownButtonPage.png
    • ElementLevelTheme.png-dark
    • ElementLevelTheme.png
    • Focus_FocusVisual_Properties.png-dark
    • DisplayInformation.png-dark
    • Gamepad_CurrentReading.png-dark
  • skia-windows-screenshots: 2310 changed over 2402

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • AnimatedIconPage.png-dark
    • Accessibility_ScreenReader.png
    • AppBarButtonTest.png
    • ApplicationViewSizing.png-dark
    • AppBarToggleButtonTest.png
    • AppWindowFeatures.png
    • AppBar_KeyBoard.png-dark
    • AppXamlDefinedResources.png
    • AppBar_KeyBoard.png
    • Attributed_text_Supserscript.png-dark
    • ApplicationViewMode.png-dark
    • AutoBorderStretchwithtopmargin.png-dark
    • ApplicationViewSpanningRectsPage.png
    • AutomationProperties_AutomationId.png-dark
    • AppWindowPresenters.png
    • AutoSuggestBox_Description.png-dark
    • ArcSegment.png
    • AutoSuggestBox_Keyboard.png
    • Arrange_Performance01.png-dark
    • AutoSuggestBox_Reason.png-dark
  • wasm: 11 changed over 1076

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • SamplesApp.Wasm.Windows_UI_Xaml_Controls.ListView.ListView_IsSelected
    • 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.Microsoft_UI_Xaml_Controls.WebView2Tests.WebView2_NavigationProperties
    • UITests.Windows_UI_Xaml_Controls.CalendarView.CalendarView_Theming
    • UITests.Windows_UI_Xaml_Media_Animation.ColorAnimation_Background
    • UITests.Uno_Web.Http.CookieManagerTests
    • Uno.UI.Samples.Content.UITests.WebView.WebView_AnchorNavigation

@morning4coffe-dev morning4coffe-dev left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[P1] The preview dependency bump introduces a concrete pack-on-build failure. In Azure build 232585, log 995, the unit-test solution build fails with NU5104 because Uno.UI.Adapter.Microsoft.Extensions.Logging is being packed with stable version 255.255.255.255 while depending on Uno.Core.Extensions.Logging and Logging.Singleton 5.0.0-dev.28. The actual unit-test step is skipped as a result. Please make the package-version/pack-on-build path consistent with the preview dependency instead of treating this as an unrelated red unit check.

The central pins, SDK manifest, templates and new LogExtensionPoint.ServiceProvider wiring otherwise agree with the upstream Uno.Core API change. This is dependency/packaging integration, not a WinUI control behavior difference.

The job builds `Uno.UI-UnitTests-only.slnf` in Release only so `dotnet test` can
run it with `--no-build`; it consumes no package. But packable projects set
`GeneratePackageOnBuild` on any Release build, and this step passes no
`PackageVersion`, so they packed at the `src/Directory.Build.props` sentinel
`255.255.255.255`. That parses as a *stable* SemVer, and the move to
`Uno.Core.Extensions 5.0.0-dev.28` made
`Uno.UI.Adapter.Microsoft.Extensions.Logging` a stable package with a prerelease
dependency - NU5104, escalated to an error by warnings-as-errors.

The managed-binaries job is unaffected because it passes
`/p:PackageVersion=$(NBGV_SemVer2)`, which is itself prerelease on master.

Suppressing NU5104 on the project would work too, but it would also hide the
legitimate case: on a `release/stable/*` branch nbgv drops the `-dev` tag and a
genuinely stable Uno package depending on a prerelease Uno.Core is exactly what
that diagnostic is for. Skip the packing instead, and keep the signal.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01GrFrHWth7YEzqGawxNiroK
Copilot AI review requested due to automatic review settings September 10, 2026 13:46
@github-actions github-actions Bot added the area/build Categorizes an issue or PR as relevant to build infrastructure label Sep 10, 2026
@github-actions

github-actions Bot commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @MartinZikmund's task in 2m 39s —— View job


Review complete ✅

  • Gather context (diff vs origin/master/base commit, changed files, prior review threads)
  • Review src/Directory.Build.targets / src/Uno.Sdk/packages.json central pin changes
  • Review src/Uno.UI.RemoteControl.Host/Startup.cs + deleted ServiceLocatorAdapter.cs
  • Review SolutionTemplate hardcoded version bumps
  • Review Uno.UI.UnitTests using CommonServiceLocator; removals
  • Review AddIns csproj changes + CI yaml change
  • Check whether the NU5104 pack failure flagged by morning4coffe-dev is addressed
  • Post inline findings (none — see below)
  • Post summary verdict

Verdict: ship. No inline findings on the current HEAD (c402ac54). This is a clean, mechanical dependency-pin bump; no SOLID/architecture, async/cancellation, cross-platform, or DependencyProperty concerns.

On the NU5104 pack failure (morning4coffe-dev's P1): the third commit, c402ac54 ("ci: Stop the unit-test build from packing"), addresses it directly. Uno.UI.Adapter.Microsoft.Extensions.Logging.csproj sets GeneratePackageOnBuild to true for Configuration=='Release' builds, which packs it at the 255.255.255.255 stable sentinel from src/Directory.Build.props while it now depends on 5.0.0-dev.28 — exactly the NU5104 trigger the failed build hit. The fix passes -p:GeneratePackageOnBuild=false as a command-line global property to the unit-test solution-filter build in build/ci/tests/.azure-devops-tests-unit-tests.yml. Global properties set via -p: take precedence over a project's own conditional <PropertyGroup> assignment during evaluation (this is the same override mechanism AGENTS.md documents for UnoTargetFrameworkOverride/UnoFastDevBuild), so this reliably suppresses packing for that leg without touching the packable project itself. The accompanying comment in the yaml correctly documents why. This specific job only builds to run tests and doesn't consume the packed artifact, so disabling packing there is safe.

Independently verified against the 3-commit diff (c87b4e33^..HEAD):

  • Repo-wide: zero remaining Uno.Core.Extensions.* references at 4.0.1/4.1.1; all central pins, Uno.Sdk/packages.json, the 4 SolutionTemplate heads, and the 3 versionless AddIn/HotReload/Processors references consistently resolve to 5.0.0-dev.28.
  • Startup.cs correctly retains using Uno.Extensions; (needed for LogExtensionPoint) after dropping using CommonServiceLocator;; no other file references the deleted ServiceLocatorAdapter.
  • The 16 using CommonServiceLocator; removals in Uno.UI.UnitTests are each the file's sole reference to that namespace — confirmed unused.
  • The src/SolutionTemplate/** legs that consume the bumped template heads are gated condition: false in build/ci/tests/.azure-devops-tests-templates.yml, matching the PR's claim that they weren't exercised by this bump.

Cross-cutting note (non-blocking): the two now-stale copilot-pull-request-reviewer threads (flagging a 4.1.1-vs-5.0.0-dev.28 mismatch) were reviewing the intermediate first commit before the second commit landed; the current HEAD is internally consistent on 5.0.0-dev.28 everywhere, so no action is needed there.
· branch dev/mazi/deps-2342-unocore-drift

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

It introduces a repo-wide major/prerelease dependency bump and CI behavior changes that warrant final human verification (pack + template/runtime validation).

Review details
  • Files reviewed: 28/28 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

@MartinZikmund

Copy link
Copy Markdown
Member Author

@morning4coffe-dev Fixed in c402ac5 — thanks, this was a real blocker and not an unrelated red check.

Root cause. The unit-test job builds Uno.UI-UnitTests-only.slnf in Release purely so dotnet test --no-build can run it, and it consumes no package. But packable projects set GeneratePackageOnBuild on any Release build, and that step passes no PackageVersion — so they packed at the src/Directory.Build.props sentinel 255.255.255.255, which parses as a stable SemVer. Stable package + prerelease dependency = NU5104, escalated to an error by warnings-as-errors.

Nothing about that machinery is new; this PR just supplied the missing operand. The managed-binaries job was never affected because it passes /p:PackageVersion=$(NBGV_SemVer2), which is itself prerelease on master.

Of the 32 projects in that solution filter, only three pack at all — Uno.Foundation.Logging (no PackageReferences), Uno.UI.DevServer.Cli (all deps stable), and Uno.UI.Adapter.Microsoft.Extensions.Logging. The adapter is the only one sitting at the intersection of "packs during a test build" and "dependency this PR moves to prerelease".

Fix. -p:GeneratePackageOnBuild=false on that build step, so the test job stops producing packages nobody consumes.

I deliberately did not suppress NU5104 on the project, which would also have worked. On a release/stable/* branch nbgv drops the -dev tag and NBGV_SemVer2 becomes a genuinely stable 7.0.x — at which point a stable Uno package depending on a prerelease Uno.Core is exactly what NU5104 exists to catch. Silencing it now would hide that later, on the release branch, at the worst possible moment. This does mean a stable Uno.Core 5.0.0 has to ship before a stable 7.0 cut — flagging it explicitly since it's a real release-ordering constraint this PR creates.

Validation — reproduced and verified locally on this branch with the CI's own SDK (build/ci/net11/_global.json, 11.0.100-preview.7.26381.103):

  • before: Build FAILED — error NU5104 … "Uno.Core.Extensions.Logging [5.0.0-dev.28, )", matching log 995 exactly
  • after, single project: Build succeeded, no .nupkg emitted
  • after, full Uno.UI-UnitTests-only.slnf (the real CI command): Build succeeded. 0 Error(s), no packages produced anywhere

I also checked that nothing in the filter consumes a locally packed nupkg — the Uno.UI.RemoteControl.DevServer.Tests add-in fixtures load built DLLs, with no pack/nupkg reference in the project.

@MartinZikmund

Copy link
Copy Markdown
Member Author

🤖 Addressed PR comments up to this point

  • @morning4coffe-dev (CHANGES_REQUESTED): NU5104 pack-on-build failure — fixed in c402ac5, -p:GeneratePackageOnBuild=false on the unit-test build step. Reproduced and verified locally with the CI SDK, before and after. Details
  • @copilot ×6 (Directory.Build.targets, Uno.Sdk/packages.json, 4× SolutionTemplate/**): "PR says 4.1.1 but this is 5.0.0-dev.28" — replied inline, no code change. The 4.1.1 is the PR's deliberate first commit; the end state is uniformly 5.0.0-dev.28 with no 4.0.1/4.1.1 Uno.Core.Extensions* reference left under src/.
  • @copilot (RemoteControl.Host/Startup.cs): "CommonServiceLocator removal exceeds the description" — replied inline, no code change. The quoted text is from an earlier revision of the body; the current one documents this change, and it is a compile break the bump forces rather than optional scope.

Note for later: keeping NU5104 live means a stable Uno.Core 5.0.0 needs to ship before a stable 7.0 cut, or the managed-binaries pack will hit the same error on release/stable/* — legitimately, that time.

@unodevops

Copy link
Copy Markdown
Contributor

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

@morning4coffe-dev morning4coffe-dev left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The pack-on-build blocker from my previous review is addressed by disabling package generation specifically for the unit-test build, which consumes no packages; it does not skip the tests or weaken the actual packaging jobs. I checked Azure build 232979: the solution-build and Run unit tests steps both succeeded, and log 201 reports 6,287 succeeded, 0 failed, 278 skipped. The previously reviewed version alignment and ServiceProvider wiring are unchanged. Updating to approve this head; the remaining overall CI/merge gates are separate.

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 232979 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) 🚨🚨
    • Buttons.png-dark
    • Buttons.png
    • CalendarView_Theming.png-dark
    • CalendarView_Theming.png
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
    • ClipboardTests.png-dark
    • DisplayInformation.png-dark
    • ElementLevelTheme.png-dark
    • ElementLevelTheme.png
    • Focus_FocusVisual_Properties.png-dark
    • Gamepad_CurrentReading.png-dark
    • Gamepad_CurrentReading.png
    • Gamepad_Enumeration.png-dark
    • Gamepad_Enumeration.png
    • ContextRequested.png-dark
    • ContextRequested.png
    • DropDownButtonPage.png-dark
    • DropDownButtonPage.png
    • Examples.png-dark
  • skia-windows-screenshots: 2310 changed over 2408

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • AnimatedIconPage.png-dark
    • AppBarButtonTest.png
    • AppBarToggleButtonTest.png
    • AppBar_KeyBoard.png-dark
    • AppBar_KeyBoard.png
    • ApplicationViewMode.png-dark
    • ApplicationViewMode.png
    • AppWindowFeatures.png-dark
    • AppWindowPositionAndSize.png-dark
    • AppWindowPositionAndSize.png
    • ArcSegment.png-dark
    • ArcSegment.png
    • AutoBorderStretchwithbottommargin.png
    • AutoBorderStretchwithleftmargin.png-dark
    • AutoSizedTopLeft.png-dark
    • AutoSizedTopLeft.png
    • AutoSuggestBox_SoftKeboard.png-dark
    • AutoSuggestBox_SoftKeboard.png
    • Basics_Automated.png-dark
    • Basics_Automated.png
  • wasm: 11 changed over 1076

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • UITests.Microsoft_UI_Xaml_Controls.WebView2Tests.WebView2_NavigationProperties
    • 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.Windows_UI_Xaml_Controls.ListView.ListViewSelectedItems
    • SamplesApp.Wasm.Windows_UI_Xaml_Controls.ListView.ListView_IsSelected
    • SamplesApp.Microsoft_UI_Xaml_Controls.WebView2Tests.WebView2_EnableDevTools
    • UITests.Uno_Web.Http.CookieManagerTests
    • UITests.Windows_UI_Xaml_Controls.CalendarView.CalendarView_Theming
    • UITests.Windows_UI_Xaml_Media_Animation.ColorAnimation_Background
    • Uno.UI.Samples.Content.UITests.WebView.WebView_AnchorNavigation

@mergify

mergify Bot commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

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/sdk Categorizes an issue or PR as relevant to the Uno.Sdk area/solution-templates Categorizes an issue or PR as relevant to the solution template 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.

Uno.Core.Extensions.* is pinned at three different versions across the repo

5 participants