Eddie Man

Hi all,
I would like to know is there have anyway to group the project item in the solution explorer (just like the Properties and References node in the C# project), I want to group all the file with the specify extension(eg *.myext) under a single node (eg. "My Extension Files"), is it possible that not provide any project type and project subtype because I want this grouping can apply for all project type. Thanks


Best regards,
Eddie Man



Re: Visual Studio Extensibility How to group the project item in solution explorer?

Eddie Man

Should it be IVsHierarchy Did anyone know how to get and customize the existing IVsHierarchy





Re: Visual Studio Extensibility How to group the project item in solution explorer?

Dmitry Pavlov

Hi Eddie,

I have some notes (not exact answers) for you.

Actually, References node is a virtual node, but Properties is just a folder on file system which is included into the project and interpreted as special folder. You can delete Properties folder from the project file.

I think you can create add-in which adds some virtual nodes into hierarchy (like it's done for References) and re-group the nodes tree in Solution Explorer.

Hope that thoughts help.






Re: Visual Studio Extensibility How to group the project item in solution explorer?

Eddie Man

Hi Dmitry,
Thank you so much, but could you give some idea how to add virtual nodes to C# hierarchy Thanks.





Re: Visual Studio Extensibility How to group the project item in solution explorer?

Eddie Man

Did anyone have idea for this issue





Re: Visual Studio Extensibility How to group the project item in solution explorer?

Dmitry Pavlov

I don't know how to do that from add-in - I am not a profy in add-ins. (Note Carlos Quintero - he is ). As for adding virtual node to the custom project - there is a sample: look at ProcessReferences() method in MPF base class ProjectNode.cs.