dotnet / dotnet/sdk

Intermediate outputs don't honor ArtifactsProjectName property when using artifacts output layout

Open
#53,052 1 comment 0 reactions 2 assignees Claimed by @dsplaisted View on GitHub
Area-NetSDK cli-ux untriaged
Dominant language
C#
Stars
3.2k
Forks
1.3k
PR merge metrics
PR metrics pending

Description

Intermediate outputs don't appear to honor the `` property when using artifacts output layout. If multiple projects in the repo have the same name and the `ArtifactsProjectName` property is used to ensure their outputs don't collide, the `bin` outputs are separated accordingly, but the `obj` outputs are not. This leads to errors in commands like `dotnet restore` if the projects target separate TFMs.

I found this with a layout like the following:

```
/
artifacts/
bin/
SourceGenerator/
debug/
SourceGenerator.dll
SourceGenerator.Tests/
debug/
SourceGenerator.Tests.dll
obj/
SourceGenerator/ <-- Intermediate outputs from both projects going in here
debug/
project.assets.json
src/
SourceGenerator/
SourceGenerator.cs
SourceGenerator.csproj
tests/
SourceGenerator/
SomeTests.cs
SourceGenerator.csproj
SourceGenerator.Tests
SourceGenerator.Tests
SourceGenerator.Tests
```

Related #51110

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.