Skip to content

Limit dotnet package update to specific versions #14381

@Frulfump

Description

@Frulfump

NuGet Product(s) Involved

dotnet.exe

The Elevator Pitch

The spec for dotnet package update was just merged #13961

But it seems to be missing something.

When only using .NET LTS releases you some times want to stick to the corresponding first party versions released for a .NET LTS release. And some times you want to stick to a specific major of a third party package for compatibility reasons.

As otherwise you will need to update individual packages or run dotnet package update and then manually revert the ones you want to keep.

But pinning packages or choosing an accepted range would also be very beneficial.
So an exclude option for some package identifiers would be nice like System.*

Notably dotnet outdated https://github.com/dotnet-outdated/dotnet-outdated wasn't mentioned in the comment #8087 (comment) where feedback was requested from popular community alternatives

Additional Context and Details

Will make an easy shareable command to keep us up to date and not break things or move us to a package range where the support is shorter than LTS.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions