Change category name for VSPS

245 views Asked by At

I'm currently using the new Visual Studio Project System Extensibility library to implement a new project type for VS2015. What I would like to do is change the name of the "category" of that type of project. I would like it to be "Visual Basic 6". The problem is that when I create a package using the "Project Type" template, it asks me for a display name (which I set to "Visual Basic 6") and a namespace name (which I set to VB6), buth when I launch the VS experimental hive (with the default template code), the project template name is "Visual Basic 6 Project" but the category at the left is "VB6". I tried changing the line of the .vstemplate file from

<ProjectType>VB6</ProjectType>

to

<ProjectType>Visual Basic 6</ProjectType>

but if I do that, then the template simply doesn't appear in the New Project window. I also tried changing the value of the Language and UniqueCapability constants in the MyUnconfiguredProject.cs file, but it doesn't change anything. If I ever change the ProjectType value, the template disappears. I noticed that the category name is in fact the namespace name (and not the "Display name", why?), so it works if I put VisualBasic6, but I can't put spaces. How could I make the category be "Visual Basic 6"

1

There are 1 answers

8
Martin Zikmund On

I have tried to follow the tutorial here

If you create a new folder with spaces in C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\ProjectTemplates\VisualBasic\, put your templates in there, after running the devenv /installvstemplates command the templates indeed appear in a category with the given name including spaces.

This article also mentions, that you cannot create new category at the top level, only as sub-category of an existing language:

You cannot create a new category at the programming language level. New categories can only be created within each language.