Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sln-remove: Support for slnx #45160

Merged
merged 12 commits into from
Jan 8, 2025

Conversation

edvilme
Copy link
Member

@edvilme edvilme commented Nov 26, 2024

Contributes to #40913

The dotnet CLI should support the new slnx format for building and in the existing solution management commands. It should also help interested users migrate to the new format.

This adds dotnet sln remove support for .slnx files

Breaking changes

  • Command will fail when passed a solution file with duplicate sources: vs-solutionpersistence does not allow duplicate references (ie, listing the same project twice) in a solution file.

Copy link
Contributor

@kasperk81 kasperk81 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hoist childrenByParent computation out of recursive step

src/Cli/dotnet/commands/dotnet-sln/remove/Program.cs Outdated Show resolved Hide resolved
src/Cli/dotnet/commands/dotnet-sln/remove/Program.cs Outdated Show resolved Hide resolved
@kasperk81
Copy link
Contributor

@edvilme lets address the feedback and get this in 9.0.200 to close the lid on this feature. without this, IDEs like vscode which rely on sdk aren't going to use this feature

@baronfel
Copy link
Member

@kasperk81 he's out for vacation - this command will still make 9.0.200 (code freeze is mid-January) but likely won't make a particular VS preview insertion as a result.

Copy link
Contributor

@kasperk81 kasperk81 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@kasperk81
Copy link
Contributor

kasperk81 commented Jan 8, 2025

the non-recursive version is much simpler and easier to read edvilme#1, it builds and passes all tests in this pr. feel free to merge that pr, its commit will automatically show up here

@edvilme edvilme merged commit ef91c4e into dotnet:release/9.0.2xx Jan 8, 2025
28 of 31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Infrastructure untriaged Request triage from a team member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants