Quantcast
Channel: Visual Studio General Questions forum
Viewing all articles
Browse latest Browse all 21115

Multiple sub-projects created with multiple multi-project template

$
0
0

Hello,

I'm creating more than one multi-project template.  Each one includes some of the same projects e.g.

MultiTemplate1 includes Web1, DataService and Entities.

MultiTemplate2 includes Web2, DataService and Entities.

Problem: If both template are installed then I end up with 2 templates each for DataService and Entities in the specified ProjectType location - in this case CSharp.

My preferred option is to have the templates recognize that these child projects are the same and have just one each of DataService and Entities added to the Visual C# folder in the New Project dialog after both multi-project templates have been installed.

One workaround was to specify <TemplateData><ProjectType>None</ProjectType></TemplateData>. This way the child projects still get created from the multiple-project template but will not be displayed in New Project dialog. On the other hand MSDN says of ProjectType: "This value specifies the type of project the template will create, and must contain one of the following values: CSharp/VisualBasic/VC/Web"

My question is what is the best approach to avoid having these duplicate project templates installed?

Thanks

D


Viewing all articles
Browse latest Browse all 21115

Trending Articles