如何在visual studio 2013中创建多项目模板?

我按照如何:创建多项目模板文章来创建一个模板,该模板将生成包含4个项目的解决方案。 我的Root.vstemplate文件包含以下内容

  Yugasat BeyondAdmin The Yugasat BeyondAdmin Project Template Icon.ico CSharp     PresentationLayer\MyTemplate.vstemplate   BusinessLogicLayer\MyTemplate.vstemplate   BusinessLogicLayerAPI\MyTemplate.vstemplate   DataAccessLayer\MyTemplate.vstemplate    

我将模板复制到[drive]:\Users\[user]\Documents\Visual Studio 2013\Templates\ProjectTemplates\ folder。 问题是模板未列为多项目模板

在此处输入图像描述

所以我可以创建单个项目,但不是包含所有4个项目的解决方案。 我的模板文件夹的内容看起来像

在此处输入图像描述

确保“.vstemplate”文件(对于每个项目)与其所在的项目具有相同的名称。

表示层应该有PresentationLayer.vstemplate

没有必要为此创建一个VSIX安装程序,但该链接可以直观地表示“root.vstemplate”中的内容。

此外,一旦完成此操作并将模板文件夹复制到〜/ My Documents / Visual Studio 2013 \ Templates \ ProjectTemplates \,该选项应在Create New Project的“Visual C#”部分中找到。