Skip to content

Stable release pack will fail with NU5104 while Uno.Core.Extensions is pinned to a prerelease #24891

Closed

Description

@MartinZikmund

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) 🔬

  1. Check out master (tested at 21fb677f804) with a .NET 11 SDK.
  2. Run:
cd src/Uno.UI.Adapter.Microsoft.Extensions.Logging
dotnet build -c Release -p:PackageVersion=7.0.0
  1. The build fails with NU5104 for Uno.Core.Extensions.Logging [5.0.0-dev.28, ) and Uno.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

  1. added
    kind/bug
    triage/untriaged
    kind/dependency
    area/build
    project/core-tools 🛠️
    platform/all
    difficulty/medium 🤔
    on Oct 1, 2026
  2. added
    7.0
    on Oct 14, 2026
  3. removed
    triage/untriaged
    7.0
    on Oct 29, 2026
  4. self-assigned this
    on Nov 3, 2026
  5. khaskoul commented on Nov 13, 2026

    @khaskoul

    Scope: static. Uno.UI.Adapter.Microsoft.Extensions.Logging 7.1.0-dev.90 nuspec depends on Uno.Core.Extensions.Logging 5.0.0 and Uno.Core.Extensions.Logging.Singleton 5.0.0 (stable, no prerelease suffix), and packages.json pins 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area/buildarea/cidifficulty/medium 🤔kind/bugkind/dependencyplatform/allproject/core-tools 🛠️

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions