Visual Studio 2008 nested class representation

I was playing with Visual Studio Solution Explorer, and one of the things I wished Microsoft had fixed from Visual Studio 2005, was the ability to select classes with names

  • Class1.cs
  • Class1.Input.cs
  • Class1.Output.cs

and make them appear as a tree, like Solution Explorer does with DataSet classes and Forms and Controls.

But I couldn’t find anything.

I know how to implement the feature manually, but I don’t see the point. In Visual Studio 2005 I had tried to create a template for a pack of 3 files like the above for example, but in the templates xml file, there was no DependsUpon tag to allow such a trick.

From what I understand, Solution Explorer has an automatic mechanism about this feature, because when I had a Class1.cs in my solution, and then added a Class1.Designer.cs it automatically implemented the trick.

Can’t there be a standard that ClassName.*.cs will hang below ClassName.cs? It would be very useful.



  1. Pingback: Creating Template Items that have nested appearance in the Solution Explorer « Alex Sarafian as Developer

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s