Skip to content

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

@v-wuzhai

Description

@v-wuzhai

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Test Debtcli-uxIssues and PRs that deal with the UX of the CLI (exit codes, log output, verbs/options, and so on)good first issueIssues that would be a good fit for someone new to the repository. Narrow in scope, well-defined.new-hire-issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions