Skip to content

fix: never downgrade a package the project already references - #70

Merged
Shewart merged 1 commit into
mainfrom
fix/no-package-downgrade
Oct 18, 2026
Merged

Shewart merged 1 commit into
mainfrom
fix/no-package-downgrade

Conversation

@Shewart

@Shewart Shewart commented Oct 18, 2026

Copy link
Copy Markdown
Contributor

Fixes #56.

shellui add ran dotnet add package --version for every NuGet dependency. That pins the exact version even when the project already has a newer one, so adding chart to an app on Blazor-ApexCharts 7 silently moved it back to 6.0.2.

add now reads the existing reference (PackageReference or Directory.Packages.props). It only adds a missing package or raises an older one. Floating versions, ranges and unknown versions are left alone.

Tests: 442 passing, 0 warnings, run on this branch merged with today's main.

add ran dotnet add package --version for every NuGet dependency, which
sets that exact version even when the project has a newer one, so adding
chart to an app on Blazor-ApexCharts 7 silently moved it back to 6.0.2.
add now reads the existing reference (PackageReference or
Directory.Packages.props) and only adds a missing package or raises an
older one; floating versions, ranges and unknown versions are left alone.

Fixes #56
Copilot AI balanced review requested due to automatic review settings October 18, 2026 17:13

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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@Shewart
Shewart merged commit 5697f23 into main Oct 18, 2026
1 check passed
@Shewart
Shewart deleted the fix/no-package-downgrade branch October 18, 2026 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Downgrading a package with dotnet add package --version is silent

2 participants