Skip to content

Should Throw Error When Adding Projects with the Same Name but Different Paths to Solution Folder #47859

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

Open
v-wuzhai opened this issue Mar 25, 2025 · 2 comments
Labels
cli-ux Issues and PRs that deal with the UX of the CLI (exit codes, log output, verbs/options, and so on) Test Debt

Comments

@v-wuzhai
Copy link
Member

Describe the bug

The current behavior allows these projects to be added to the same solution folder, which can lead to naming conflicts and management confusion.

Current Behavior:When attempting to add projects with the same name but different paths to a solution folder, this operation is allowed and does not throw an error. This causes the test WhenNestedDuplicateProjectIsAddedToASolutionFolder to fail.

Expected Behavior

An error should be thrown in this scenario, indicating a naming conflict and preventing the addition. This will ensure the correctness and consistency of the project.

Copy link

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

@dotnet-issue-labeler dotnet-issue-labeler bot added the untriaged Request triage from a team member label Mar 25, 2025
Copy link

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

@nagilson nagilson added cli-ux Issues and PRs that deal with the UX of the CLI (exit codes, log output, verbs/options, and so on) and removed untriaged Request triage from a team member labels Apr 15, 2025
@nagilson nagilson removed their assignment Apr 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli-ux Issues and PRs that deal with the UX of the CLI (exit codes, log output, verbs/options, and so on) Test Debt
Projects
None yet
Development

No branches or pull requests

2 participants