Own item type for a project node

Sergei 1 Reputation point


EnvDTE namespace has ProjectItems class. It has AddFolder method. With it, we can create a physical folder (for a C# project):

var projectItem=projectItems.AddFolder("FolderName", VSConstants.ItemTypeGuid.PhysicalFolder_string);

Or a virtual folder (for a C++ project):

var projectItem=projectItems.AddFolder("FilterName", VSConstants.ItemTypeGuid.VirtualFolder_string);

But we cannot create a physical folder for a C++ project. Is it possible to create my own type somehow? Say, duplicating the filter for C++ projects (exactly the same function), just so that it has a different identifier and is displayed with a different icon (collapsed and expanded).

An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
8,980 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anna Xiu-MSFT 18,716 Reputation points Microsoft Vendor


    Based on my knowledge, I suppose it is impossible.

    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments