Skip to content

Artifacts Path Layout causes intermittent build failures when any projects involved in the build have the same _name_ #51110

@baronfel

Description

@baronfel

Describe the bug

Since ArtifactsPath uses the project name as the primary 'namespace' for outputs, as soon as you have a duplicate name you end up with race conditions in the projects that share the same name and/or projects that are downstream of them. Aspire hit this and fixed it with an explicit check that fails when there is a duplicate project name in dotnet/aspire#11587.

To Reproduce

  • Create two projects in separate directories with the same project file name.
  • Configure them to use Artifacts layout.
  • Do a build.
  • See that there is only one artifacts output directory.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions