Reputation: 16216
In Visual Studio 3 files are typically grouped together:
Is there a way to add another file that grouping so that it can be collapsed and out of view?
Thanks
Upvotes: 2
Views: 347
Reputation: 8455
I've created a Visual Studio adding that does it (and more). It works with VS 2008 and 2010 and you can check it out here: http://mokosh.co.uk/vscommands
Upvotes: 2
Reputation: 16216
Here's the xml (corresponding to the example)
<Compile Include="customfile.cs">
<DependentUpon>filename.aspx</DependentUpon>
</Compile>
Works like a charm.
Upvotes: 0
Reputation: 161773
If you open the .csproj file, you'll see how it's done. Try following the pattern to add your new file.
For example:
<Compile Include="Default.aspx.cs">
<DependentUpon>Default.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
Upvotes: 3