Yes, but this is a bit of a hassle - basically you need to manually edit the project file.
Here is an example from the project we are working with Mark Gravell and others:
<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>
Note the "DependentUpon" element in each of the dependencies. This is displayed appropriately in VS, and DataProducerExt.cs as the parent.
Jon skeet
source share