Repository navigation
Description
Current behavior 🐛
Uno.Core.Extensions.* is pinned to a prerelease (5.0.0-dev.28) in src/Directory.Packages.props. Uno.UI.Adapter.Microsoft.Extensions.Logging references Uno.Core.Extensions.Logging and Uno.Core.Extensions.Logging.Singleton, and it is packed on every Release build (GeneratePackageOnBuild is true when Configuration=Release).
On master that is fine, because the packaging job passes /p:PackageVersion=$(NBGV_SemVer2), which is 7.0-dev.N (a prerelease). But once a release/stable/7.0 branch produces a stable NBGV_SemVer2 (7.0.x), packing fails with NU5104 (a warning treated as an error):
NuGet.Build.Tasks.Pack.targets(232,5): error NU5104: Warning As Error: A stable release of a package
should not have a prerelease dependency. Either modify the version spec of dependency
"Uno.Core.Extensions.Logging [5.0.0-dev.28, )" or update the version field in the nuspec.
(A similar failure already hit the unit-test CI job, because it builds in Release without PackageVersion and Version falls back to the 255.255.255.255 sentinel from src/Directory.Build.props. That job now passes -p:GeneratePackageOnBuild=false; this issue is about the stable-release case that remains.)
Expected behavior 🎯
A stable Uno release can be packed. All Uno.Core.Extensions.* dependencies need to be stable versions by the time 7.0 stable is cut.
How to reproduce it (as minimally and precisely as possible) 🔬
- Check out
master(tested at21fb677f804) with a .NET 11 SDK. - Run:
cd src/Uno.UI.Adapter.Microsoft.Extensions.Logging
dotnet build -c Release -p:PackageVersion=7.0.0
- The build fails with NU5104 for
Uno.Core.Extensions.Logging [5.0.0-dev.28, )andUno.Core.Extensions.Logging.Singleton [5.0.0-dev.28, ).
Passing -p:PackageVersion=7.0.0-dev.1 instead succeeds.
Workaround 🛠️
None needed today (master packs prerelease versions). For a stable release, publish a stable Uno.Core 5.0.0 and move the pins in src/Directory.Packages.props (and the matching entries in src/Uno.Sdk/packages.json) to it. Blanket-suppressing NU5104 in the adapter project would only hide the problem and ship a stable package depending on a prerelease.
Renderer 🎨
- Skia
- Native
Affected platforms 📱💻🖥️
CI (build / packaging)
Uno.Sdk version (and other relevant versions) 📦
master at 21fb677f804, .NET SDK 11.0.100-rc.1.
IDE version 🧑💻
N/A (command line)
Anything else we need to know? 💬
This is a release blocker to track, not an urgent bug: a stable 7.0 cannot be packed while any Uno.Core.Extensions.* pin is a -dev version. Note that unoplatform/Uno.Core#98 (removing CommonServiceLocator from Uno.Core.Extensions.Compatibility) is a breaking change, so it should land before the stable 5.0.0 is published.
Activity
chore(deps): Move Uno.Core.Extensions to 5.0.0 and Uno.DevTools.Telem…
khaskoul commentedon Nov 13, 2026
Scope: static.
Uno.UI.Adapter.Microsoft.Extensions.Logging7.1.0-dev.90 nuspec depends onUno.Core.Extensions.Logging5.0.0 andUno.Core.Extensions.Logging.Singleton5.0.0 (stable, no prerelease suffix), andpackages.jsonpins CoreLogging 5.0.0. A real stable pack was not run (needs the stable branch build).Fixed on Uno.Sdk 7.0.0-dev.179 as far as the dependencies go. I did not run a stable pack.
Environment: Windows 11 Pro (26200), .NET SDK 10.0.401, Uno.Sdk / Uno.Templates 7.0.0-dev.179 (Uno.WinUI 7.1.0-dev.90).
Uno.UI.Adapter.Microsoft.Extensions.Logging 7.1.0-dev.90 now depends on Uno.Core.Extensions.Logging 5.0.0 and Uno.Core.Extensions.Logging.Singleton 5.0.0, both stable versions (it was 5.0.0-dev.28). The Uno.Sdk CoreLogging pin is 5.0.0 as well. So a stable package built from this graph should not trigger NU5104.