Skip to content

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

Closed

Description

@MartinZikmund

Current behavior 🐛

Three live versions of one transitive dependency coexist inside a single major, across unoplatform/uno:

Source Uno.Core.Extensions.* version
src/Directory.Build.targets:126-130 (central Update) 4.0.1
src/Uno.Sdk/packages.json CoreLogging group 4.1.1
Five src/SolutionTemplate/** heads (hardcoded) 4.0.1

The Uno.Sdk manifest supplies 4.1.1 to app heads while the repo's own packages record a 4.0.1 floor, so the shipped Uno.UI.Adapter.Microsoft.Extensions.Logging and the five add-ins (Uno.WinUI.SpellChecking, Uno.WinUI.MediaPlayer.Skia.Win32, Uno.WinUI.MediaPlayer.Skia.X11, Uno.WinUI.WebView.Skia.X11, Uno.WinUI.Graphics3DGL) all declare a floor one minor behind what an app actually resolves.

Two related defects in the same area:

Uno.Core.Extensions.Threading has no central pin at all. It is the only Uno.Core.Extensions.* package missing a PackageReference Update line, so its two consumers — src/Uno.HotReload/Uno.HotReload.csproj:34 and src/Uno.UI.RemoteControl.Server.Processors/…csproj:32 — carry inline versions, unlike every sibling reference.

Dead inline versions. src/AddIns/Uno.UI.MediaPlayer.Skia.Win32/…csproj:28-29 specify Version="4.0.1" inline, but a PackageReference Update in Directory.Build.targets overrides an inline Version. Verified with a synthetic project (inline 1.0.0 + Update 9.9.9 → evaluates to 9.9.9). Those attributes have no effect and are misleading.

Expected behavior 🎯

One version of Uno.Core.Extensions.* across the repo, matching what the Uno.Sdk manifest ships, with every reference driven centrally except where a Directory.Build.targets is deliberately not inherited.

How to reproduce it (as minimally and precisely as possible) 🔬

git ls-files -z | xargs -0 grep -In 'Uno\.Core\.Extensions' | grep -E '\.(csproj|props|targets|json)'

and compare against the CoreLogging group in src/Uno.Sdk/packages.json.

Or evaluate any add-in — dotnet msbuild src/AddIns/Uno.WinUI.SpellChecking/Uno.WinUI.SpellChecking.csproj -getItem:PackageReference reports 4.0.1, while an app head restores 4.1.1.

Workaround 🛠️

None needed — NuGet's highest-floor rule resolves 4.1.1 in practice. The declared floors are simply stale, which misleads anyone consuming these packages directly.

Renderer 🎨

  • Skia
  • Native

Affected platforms 📱💻🖥️

All.

Uno.Sdk version (and other relevant versions) 📦

7.0.0-dev.645

Anything else we need to know? 💬

src/SolutionTemplate/Directory.Build.targets is intentionally empty — "we don't want our Directory.Build.targets in src to affect building the templates" — so those five heads cannot go versionless and must be bumped in place.

Note this is only the version-drift half of the dependency-slimming work in this area. Removing CommonServiceLocator 2.0.5 from the graph is handled upstream in unoplatform/Uno.Core and cannot be done here: Uno.Core.Extensions.Logging.Singleton 4.1.1 still declares it in every framework group.

Activity

  1. added
    kind/bug
    on Sep 4, 2026
  2. self-assigned this
    on Sep 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions