dotnet / dotnet/sdk

ProjectReference.ExcludeAssets doesn't work

Open
#50,170 1 comment 1 reaction 1 assignee Claimed by @MiYanni View on GitHub
Area-NetSDK untriaged
Dominant language
C#
Stars
3.2k
Forks
1.3k
PR merge metrics
PR metrics pending

Description

Publish fails when an assets file --- for example `appsettings.json` --- from a referenced project would overwrite an assets file from the project being published.

Using
```
contentFiles
contentFiles

```
in the consuming project should fix this, but it does not.

Example attached.

[PrivateAssets.zip](https://github.com/user-attachments/files/21717410/PrivateAssets.zip)

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.