Skip to content

dotnet package update should respect NuGet version semantics #52017

@Jonany

Description

@Jonany

Is your feature request related to a problem? Please describe.

dotnet package update in 10.0.100 does not respect NuGet package version semantics such as "*" or "[7.2.0,8.0)". It simply updates everything to the latest version. This limits its usefulness since I then have to manually fix package references and downgrade packages where the version number matters.

Describe the solution you'd like

dotnet package update should respect/follow NuGet version semantics.

Example with ranges:

<PackageReference Include="FluentAssertions" Version="[7.2.0,8.0)" />

If the reference looks like this, the resolved version number should be 7.2.0 (that's the latest for FluentAssertions before 8.0.0) and the version in the PackageReference should not be changed.

Example with "*":

<PackageReference Include="FluentAssertions.Analyzers" Version="*">

If the reference looks like this, the resolved version number should be whatever the latest version that is compatible with the project and package dependencies and the version in the PackageReference should not be changed. At the moment and for this project, it would be 0.34.1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions