Add solution folder to visual studio project template

后端 未结 5 716
忘掉有多难
忘掉有多难 2021-01-06 17:18

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?

5条回答
  •  礼貌的吻别
    2021-01-06 18:06

    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.

    
        AssemblyInGACWithSomeLogic
        MySuperWizardExtension
     
    

    You can find more about wizard extensions on MSDN.

提交回复
热议问题