visual-studio 如何在VS2010中创建解决方案模板?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2717110/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-22 11:50:54  来源:igfitidea点击:

How to create a solution template in VS2010?

visual-studio-2010visual-studiovisual-studio-templates

提问by devlife

Can anyone point me in the right direction on how to create a Solution Template in VS2010? I need to create a solution with several projects already created....

谁能指出我如何在 VS2010 中创建解决方案模板的正确方向?我需要创建一个解决方案,其中已经创建了多个项目....

采纳答案by Daniel Mohl

回答by Hans Passant

Solution templates do not exist. A VSTemplate type can be Project or Item, reference is here. This is also visible from File + Export Template.

解决方案模板不存在。VSTemplate 类型可以是 Project 或 Item,参考在这里。这也可以从文件 + 导出模板中看到。

Maybe you could write a macro to copy/create the required files.

也许您可以编写一个宏来复制/创建所需的文件。

回答by Maxim

That's not a VS template, but you can use tempify to create folder templates - http://opensource.endjin.com/templify/

这不是 VS 模板,但您可以使用 tempify 创建文件夹模板 - http://opensource.endjin.com/templify/

"Templify has two modes – Create and Deploy. In Create mode you can take a pre-existing solution and turn it into a deployable template..."

Templify 有两种模式——创建和部署。在创建模式下,您可以采用预先存在的解决方案并将其转换为可部署的模板......