将解决方案文件夹添加到Visual Studio项目模板 [英] Add solution folder to visual studio project template

查看:106
本文介绍了将解决方案文件夹添加到Visual Studio项目模板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在项目模板中添加解决方案文件夹?如果没有内置功能,是否可以为此创建自定义任务?

Is it possible to add a solution folders with the project template? If it's not built in functionality, is it possible to create a custom task for this?

推荐答案

这有点棘手.您不能使用简单的项目模板来执行此操作.项目模板只能在单个项目级别上运行.要实现更高级的逻辑,您需要实现 WizardExtension 并在其中注册.vstemplate您模板的文件.

This is bit tricky. You cannot do this with simple project template. Project templates could operate only on single project level. To implement more advanced logic, you need to implement WizardExtension and register it within .vstemplate file of your template.

<WizardExtension>
    <Assembly>AssemblyInGACWithSomeLogic</Assembly>
    <FullClassName>MySuperWizardExtension</FullClassName>
</WizardExtension> 

您可以在 MSDN 上找到有关向导扩展的更多信息.

You can find more about wizard extensions on MSDN.

这篇关于将解决方案文件夹添加到Visual Studio项目模板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆