创建visual studio解决方案模板 - 多个项目

Sha*_*ean 7 visual-studio-2010 visual-studio visual-studio-templates

我坚持使用本教程来创建一个多项目的可视化工作室模板.我特意坚持这一行:

Select the files and folders to include in your template, right-click the selection, click Send To, and then click Compressed (zipped) Folder. The files and folders are compressed into a .zip file.

我做了以下步骤:

  1. 创建2个项目.(MyProj.Web和MyProj.Service)
  2. 在MyProj.Web中引用MyProj.Service.
  3. 出口两者.它们现在在一个.zip文件中.

我该怎么办?

我的意图是:制作解决方案文件夹,其中包括一些dll(DI,单元测试框架等).有这些dlls参考.其他项目中的参考项目.重命名部分项目.例如.进行替换的能力{MyProj}.ServiceNewName.Service

Alv*_*yes 2

其他部分包括制作 .vstemplate xml 文件并将 zip 放入 ProjectTemplates 中。

根据文章:

将 .zip 模板文件放入 Visual Studio 项目模板目录中。默认情况下,此目录为 \My Documents\Visual Studio 2010\Templates\ProjectTemplates\

然后可以从File>获取 Visual Studio 模板New Project。如果为单个项目创建模板,请将其放置在 \ItemTemplates 文件夹中,以便从Add New Item解决方案资源管理器的上下文菜单中使用它。