Display file hierarchically under another file in Visual Studio

In Visual Studio, I would like to show a hierarchical relationship between specific files.

A typical ASP.NET WebForms application is an example of what I want. Say I have a file with a name Page.aspx. Files with the name Page.aspx.csand Page.aspx.designer.csusually look hierarchically lower Page.aspxin the solution explorer.

+4
source share
1 answer

If you want file A to appear hierarchically in the File B section of Solution Explorer, follow these steps:

, <Content Include> ( <None Include> ) node A <DependentUpon>File B</DependentUpon>. :

<Content Include="File A">
  <DependentUpon>File B</DependentUpon>
</Content>`
+3

Source: https://habr.com/ru/post/1598045/


All Articles