Project structure file dependency
If you want to show a dependency of two separate files in the Visual Studio project structure, you can use a definition of a dependency between the two files in the csproj file.
Before:
Set this snippet into your csproj file to create the dependency of the desired files:
1
2
3
4
5
<ItemGroup>
<None Update="appsettings.Development.json">
<DependentUpon>appsettings.json</DependentUpon>
</None>
</ItemGroup>
After: