Skip to content

fix(sdk): Pin CoreLogging to the stable 5.0.0 - #2395

Merged
agneszitte merged 2 commits into
mainfrom
dev/mazi/core-logging-stable
Nov 5, 2026
Merged

agneszitte merged 2 commits into
mainfrom
dev/mazi/core-logging-stable

Conversation

@MartinZikmund

Copy link
Copy Markdown
Member

GitHub Issue (If applicable): related to unoplatform/uno#26017

PR Type

  • Bugfix

What is the current behavior?

A blank Windows app from today's templates doesn't restore. With Uno.Templates and Uno.Sdk 7.0.0-dev.161 on .NET SDK 10.0.400:

dotnet new unoapp -preset blank -platforms windows
dotnet restore -r win-x64 -p:Platform=x64

error NU1605: Warning As Error: Detected package downgrade: Uno.Core.Extensions.Logging.Singleton from 5.0.0 to 5.0.0-dev.34.
  UnoBlank -> Uno.UI.Adapter.Microsoft.Extensions.Logging 7.1.0-dev.21 -> Uno.Core.Extensions.Logging.Singleton (>= 5.0.0)
  UnoBlank -> Uno.Core.Extensions.Logging.Singleton (>= 5.0.0-dev.34)

Uno.WinUI moved to Uno.Core.Extensions 5.0.0 in unoplatform/uno#26017, and Uno.Sdk.Private 7.1.0-dev.21 pins 5.0.0. This repo's packages.json still says 5.0.0-dev.34, and it's what ships in Uno.Sdk.

What is the new behavior?

The CoreLogging group pins 5.0.0. The workaround until this ships is <UnoCoreLoggingSingletonVersion>5.0.0</UnoCoreLoggingSingletonVersion>.

Why the updater didn't do this. On a preview line the updater starts from this repo's packages.json, so the private SDK's value isn't used. From reading Uno.Sdk.Updater, CoreLogging then goes through ValidatePackage. On a preview line one failed validation stops the loop and leaves no candidates, so UpdateGroup falls back to 0.0.0.0 and keeps the current version, logging only Unable to find package. I think that's what happens here, but I didn't run the updater or find out why validation would reject 5.0.0, and this PR doesn't change the updater. The same line keeps a hand-set version from being lowered, so 5.0.0 should stay.

Validation

  • Patched a copy of Uno.Sdk 7.0.0-dev.161 with this pin (and two unrelated WinAppSDK changes from unoplatform/uno), and installed it from a local feed with an empty package cache. The blank app above restored with no NU1605 and published (win-x64, Release, trimmed + R2R).
  • Not run: the app wasn't launched, and I didn't test the other templates or heads.

🤖 Generated with Claude Code

https://claude.ai/code/session_01TXMNtyBVZWdemP5ouF7UUA

Uno.WinUI needs 5.0.0, so the dev.34 pin failed restore with NU1605 on a blank Windows app.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01TXMNtyBVZWdemP5ouF7UUA
Copilot AI balanced review requested due to automatic review settings November 5, 2026 14:45
@github-actions github-actions Bot added the area/sdk Categorizes an issue or PR as relevant to the Uno.Sdk label Nov 5, 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.

🟢 Approval recommended

The CoreLogging dependency pin update has no active review issues.

No open issues 🎉

What changed in this PR

Updates Uno.Sdk’s CoreLogging dependency pin to stable 5.0.0, addressing the package downgrade error reported when restoring a blank Windows app with newer Uno dependencies.

Changes:

  • Replaces 5.0.0-dev.34 with 5.0.0 for Uno.Core.Extensions.Logging.Singleton.
  • Leaves package updater behavior unchanged.
File Description
src/​Uno.Sdk/​packages.json Pins the CoreLogging group to stable 5.0.0.

Review effort: Balanced

Comment thread src/Uno.Sdk/packages.json Resolved
@agneszitte
agneszitte merged commit c6af966 into main Nov 5, 2026
57 of 65 checks passed
@agneszitte
agneszitte deleted the dev/mazi/core-logging-stable branch November 5, 2026 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/sdk Categorizes an issue or PR as relevant to the Uno.Sdk

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants