Skip to content

Use Central Package Management for the package versions in unoplatform/uno #24536

Closed

Description

@MartinZikmund

What would you like to be added? 💡

Move the package versions used to build unoplatform/uno into NuGet Central Package Management (src/Directory.Packages.props).

Today versions come from two places:

  • PackageReference Update pins in src/Directory.Build.targets
  • inline Version attributes on PackageReference items in about 60 project, .props and .targets files

Where a package has both, the Update pin wins without any warning, so many inline versions are dead text. For example, Uno.Analyzers.Tests declares NuGet.Packaging 6.0.2 but restores 6.3.4, and Uno.UI.DevServer.Cli declares Microsoft.Extensions.Logging.Console 9.0.0 but restores 5.0.0. Packages that exist in only one project drift apart across the DevServer projects (StreamJsonRpc, Mono.Options, Microsoft.Extensions.DependencyInjection, Microsoft.Extensions.Logging).

Expected:

  • Every version is declared once, in src/Directory.Packages.props.
  • Project files carry no Version, which NuGet enforces with NU1008.
  • A project that must diverge (Roslyn floors for shipped source generators and analyzers, the dev-server Roslyn lines) opts into a named version line instead of a literal.

Why is this needed? 🤔

One place to bump a dependency, no dead version declarations, and restore fails instead of silently ignoring a stray inline version.

Renderer 🎨

  • Skia
  • Native

For which platforms 📱💻🖥️

Build tasks

Anything else we need to know? 💬

The templates under src/SolutionTemplate/ keep their own restore setup and should not pick up the repository's central versions.

Activity

  1. added
    kind/enhancement
    triage/untriaged
    area/build
    on Sep 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/buildkind/enhancementtriage/untriaged

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions