Repository navigation
chore: Move Uno.Core.Extensions to 5.0.0-dev.28 - #24403
Conversation
|
Claude finished @MartinZikmund's task in 52s —— View job Review complete ✅
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:
Cross-cutting note (non-blocking): the PR description is unusually transparent about scope-narrowing versus the linked private issue (declines to remove |
There was a problem hiding this comment.
🟢 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 Updatepins insrc/Directory.Build.targetsfrom4.0.1→4.1.1, and add a new central pin forUno.Core.Extensions.Threading. - Remove inline
Version="4.0.1"from projectPackageReferences 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.targetsto useUno.Core.Extensions.Logging.Singleton4.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.
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-24403/wasm-skia-net9/index.html |
|
|
There was a problem hiding this comment.
🟡 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
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
f57c356 to
53ee405
Compare
|
Claude finished @MartinZikmund's task in 1m 37s —— View job Review complete ✅
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
Cross-cutting note (non-blocking): the two most recent
|
There was a problem hiding this comment.
🔵 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
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-24403/wasm-skia-net9/index.html |
|
The build 232585 found UI Test snapshots differences: Details
|
morning4coffe-dev
left a comment
There was a problem hiding this comment.
[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
|
Claude finished @MartinZikmund's task in 2m 39s —— View job Review complete ✅
Verdict: ship. No inline findings on the current HEAD ( On the NU5104 pack failure (morning4coffe-dev's P1): the third commit, Independently verified against the 3-commit diff (
Cross-cutting note (non-blocking): the two now-stale |
There was a problem hiding this comment.
🔵 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
|
@morning4coffe-dev Fixed in c402ac5 — thanks, this was a real blocker and not an unrelated red check. Root cause. The unit-test job builds Nothing about that machinery is new; this PR just supplied the missing operand. The managed-binaries job was never affected because it passes Of the 32 projects in that solution filter, only three pack at all — Fix. I deliberately did not suppress NU5104 on the project, which would also have worked. On a Validation — reproduced and verified locally on this branch with the CI's own SDK (
I also checked that nothing in the filter consumes a locally packed nupkg — the |
🤖 Addressed PR comments up to this point
Note for later: keeping NU5104 live means a stable |
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-24403/wasm-skia-net9/index.html |
morning4coffe-dev
left a comment
There was a problem hiding this comment.
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.
|
The build 232979 found UI Test snapshots differences: Details
|
|
Tick the box to add this pull request to the merge queue (same as
|
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:
Updatepins said 4.0.1, theUno.Sdkmanifest already shipped 4.1.1, and the solution-template heads hardcoded 4.0.1 out of reach of the central pins. This is whatUno.Core.Extensions.*is pinned at three different versions across the repo #24402 asks for.CommonServiceLocatorout of the graph.Updatepins → 5.0.0-dev.28 (6 packages)src/Directory.Build.targetsUno.Core.Extensions.Threading(it had none)src/Directory.Build.targetsUno.SdkCoreLogginggroup → 5.0.0-dev.28src/Uno.Sdk/packages.jsonsrc/SolutionTemplate/**Version=removed → versionlessUno.HotReload,RemoteControl.Server.ProcessorsServiceLocator→LogExtensionPoint.ServiceProvidersrc/Uno.UI.RemoteControl.Host/using CommonServiceLocator;removedsrc/Uno.UI.UnitTests/**Why 5.0.0-dev.28 specifically
unoplatform/Uno.Core#94 replaces the
ServiceLocatorlookup inLogExtensionPoint.GetFactory()withSystem.IServiceProvider, dropping theCommonServiceLocatorPackageReferencefromUno.Core.Extensions.Logging.Singleton. Because that package is referenced byUno.WinUI,CommonServiceLocator.dllwas 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, predatingMicrosoft.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:
Uno.Core.Extensions.Logging.SingletonCommonServiceLocator 2.0.5Uno.Core.Extensions.CompatibilityCommonServiceLocator— it exposesIServiceLocatorin its public API by design, and is not shipped inside Uno appsUno.Core.Extensions,.Logging,.Disposables,.ThreadingSo 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
CommonServiceLocatorreached both of these only by flowing throughLogging.Singleton, so both stop compiling on the bump.Uno.UI.RemoteControl.Hosthanded Uno.Core logging anILoggerFactoryviaServiceLocator.SetLocatorProvider(…), using aninternal class ServiceLocatorAdapter : IServiceLocatorthat existed for no other purpose.Startup.cscollapses to the documented replacement:and
ServiceLocatorAdapter.csis deleted.Worth flagging for reviewers: that wiring was already inert.
Program.csassignsLogExtensionPoint.AmbientLoggerFactoryeagerly during init, and again right afterStartup.Configure;GetFactory()only runs while the factory is still null, so neither the old locator nor the newServiceProvideris 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.UnitTestscarriedusing 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 stringServiceLocator.Two things #24402 got wrong, corrected in the first commit
Only one add-in hardcoded a version, not five.
Uno.UI.MediaPlayer.Skia.Win32is 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 Updateoverrides an inlineVersion— verified with a synthetic project (inline1.0.0+Update 9.9.9→ evaluates to9.9.9). Those attributes did nothing, so they are removed rather than bumped.Uno.Core.Extensions.Threadingturned 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, becausesrc/SolutionTemplate/Directory.Build.targetsis 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.Coredependency outright.Uno.Extensions.LogExtensionPoint.AmbientLoggerFactoryis written by every app template'sApp.xaml.cs, so it is de-facto public API, andUno.Core.Extensions.Logging— though unused by the adapter's own four source files — is the channel through whichUno.Logging.LogExtensions(this.Log()) reaches app code. 26 files in this repo alone carryusing Uno.Logging;, andSamplesApp.csprojdocuments relying on that transitive flow. WithCommonServiceLocatornow gone from.Singleton, dropping it would buy nothing at real consumer cost.Validation ✅
Package availability — checked before bumping. All six packages publish
5.0.0-dev.28on nuget.org (queried via the flat-container index). No invented version numbers.Restore graph — ran locally. Resolved versions read out of
project.assets.jsonafter restore, alongside theCommonServiceLocatoroccurrence count in the same file:Uno.Core.Extensions.Threading = 5.0.0-dev.28on now-versionless references is what proves the new central pin works — they would otherwise emitNU1604. AndCSL: 0on the adapter is the consumer-facing outcome: that project is howCommonServiceLocator.dllentered every app.Compile — ran locally after the rebase, two legs, both with
UnoFastDevBuildoff so analyzers ran.Uno.UI.RemoteControl.Host+ its 5 project dependencies — Build succeeded, 0 errors, on the migratedLogExtensionPoint.ServiceProvidercode.CommonServiceLocator.dllno longer appears anywhere under itsbin/. One warning:CA1014(Mark assemblies with CLSCompliant) onUno.HotReload— pre-existing, not from this PR. Confirmed by buildingUno.HotReloadfrom a throwaway worktree at plainorigin/masterwith--no-incremental: identical warning, same project.Uno.UI.UnitTests(which pullsUno.UI,Uno.WinRT,Uno.Foundation, the source generators and the view libraries) — Build succeeded, 0 warnings / 0 errors, covering the 16 removedusingdirectives.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 at4.1.1or4.0.1remains in any.csproj/.props/.targets/.json; the repo has nopackages.lock.jsonto refresh.Not validated, and reviewers should weigh these:
src/SolutionTemplate/**heads were not built. They sit outside the central pins by design and are only exercised by the template-test legs, all currentlycondition: false.CommonServiceLocatoredge; they say nothing about IL-level changes inside the assemblies.5.0.0-dev.28is a dev build, not a stable release, and should be re-pinned to a stable5.0.0before 7.0 ships.GetFactory(), not by starting the host and observing log output — mitigated by the wiring being inert (above), but stated plainly.PR Checklist ✅
Screenshots Compare Test Runresults.Breaking changes — two, both narrow.
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, apackages.lock.jsonor a plainPackageReference— getsNU1605. Few apps referenceUno.Coredirectly, so the blast radius is small, but it is real and belongs in the 7.0 release notes.ServiceLocatorno longer supplies the logger factory. Any consumer that fed Uno logging throughServiceLocator.SetLocatorProvider(…)must assignLogExtensionPoint.ServiceProviderinstead. Apps usingMicrosoft.Extensions.DependencyInjection— i.e. everything generated from the templates — are unaffected, since that path already fell through to a defaultLoggerFactory.🤖 Generated with Claude Code
https://claude.ai/code/session_01LejXBpaCfD8kr3VSfSHXxE