Tak, ale to trochę kłopotliwe - w zasadzie trzeba ręcznie edytować plik projektu.
Oto przykład z projektem, który Marc Gravell i ja praca na:
<Compile Include="Linq\Extensions\DataProducerExt.cs" />
<Compile Include="Linq\Extensions\DataProducerExt.SingleReturn.cs">
<DependentUpon>DataProducerExt.cs</DependentUpon>
</Compile>
<Compile Include="Linq\Extensions\DataProducerExt.Grouping.cs">
<DependentUpon>DataProducerExt.cs</DependentUpon>
</Compile>
<Compile Include="Linq\Extensions\DataProducerExt.Pipeline.cs">
<DependentUpon>DataProducerExt.cs</DependentUpon>
</Compile>
<Compile Include="Linq\Extensions\DataProducerExt.Conversion.cs">
<DependentUpon>DataProducerExt.cs</DependentUpon>
</Compile>
<Compile Include="Linq\Extensions\DataProducerExt.Math.cs">
<DependentUpon>DataProducerExt.cs</DependentUpon>
</Compile>
Uwaga „DependentUpon” element w każdym z zależnościami. Wyświetla się odpowiednio w VS, a DataProducerExt.cs jako nadrzędny.
Rozszerzenie FileNesting może to zrobić automatycznie: https://marketplace.visualstudio.com/items?itemName=MadsKristensen.FileNesting – John