dotnet / dotnet/sdk

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

Open
#51,110 7 comments 0 reactions 1 assignee Claimed by @dsplaisted View on GitHub
Area-NetSDK untriaged
Dominant language
C#
Stars
3.2k
Forks
1.3k
PR merge metrics
PR metrics pending

Description

### 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 https://github.com/dotnet/aspire/pull/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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.