dotnet / dotnet/project-system
For projects using the .NET SDK, don't set link metadata on items added from outside the project folder as links
Open
Feature-Project-File-Simplification
Triage-Approved
- Dominant language
- C#
- Stars
- 1k
- Forks
- 415
- PR merge metrics
- No merged PRs in 30d
Description
With https://github.com/dotnet/sdk/pull/1246, it's no longer necessary to specify `Link` metadata on files included from outside the project folder. So in order to keep the project file clean, they shouldn't be added when using the .NET SDK. IE, instead of:
```xml
DiagnosticsHelper.cs
```
You should just get:
```xml
```
We'll need to add a capability in the SDK representing this in order for the project system to detect whether it should use this behavior.
Contributor guide
Assessment
This issue has not been assessed yet.