Skip to content

add remove package if not sdk style - #242

Closed
b3go wants to merge 1 commit into
dotnet-outdated:masterfrom
b3go:bego/fix-upgrade-non-sdk
Closed

b3go wants to merge 1 commit into
dotnet-outdated:masterfrom
b3go:bego/fix-upgrade-non-sdk

Conversation

@b3go

@b3go b3go commented Jan 24, 2022 •

Copy link
Copy Markdown

Hi,

dotnet add has a known bug with old style csproj. NuGet/Home#8561
Instead of increasing the version number for the existing row, it adds a new row for the package with the new version, hence duplicating the package references. Until they fix it, the only workaround seems to be to first remove the package and add it afterwards. Currently I do that using powershell but would be great to have that in dotnet outdated.

Guess I am beeing overly pragmatic with checking if the project is in the new/old format (take 2 because I've seen csproj with xml header). Maybe it's possible to get that info earlier, durring DependencyGraph analysis.

Edit: just saw that git thinks I deleted the file, actually I just renamed it.

@findgoggi

Copy link
Copy Markdown

This one would be mighty handy.

@b3go b3go closed this by deleting the head repository Apr 3, 2024
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.

2 participants