dotnet / msbuild

The Microsoft Build Engine (MSBuild) is the build platform for .NET and Visual Studio.
https://docs.microsoft.com/visualstudio/msbuild/msbuild
MIT License
5.2k stars 1.35k forks source link

Add an option to force <Link> to be used when user wants it to be used when file exists within the project structure. #7474

Closed AraHaan closed 2 years ago

AraHaan commented 2 years ago

Currently I see no (publicly documented) way of forcing a Included File's <Link> when it is intended to be forced included in the project despite it living in the project structure.

A problem I face is something along the lines of:

With this logic of the user, it expresses intent that they want others who might clone to codebase to know what files depend on other files (or get generated from them) visually within Visual Studio using the above project xml.

I even tried Visible with it not working as expected.

AraHaan commented 2 years ago

Turns out I was swapping doing the links wrong.