Developing TemplateWizard for generating solutions from several projects in VS.

The application is built according to the following logic:

1) Run IWizard from a template in Visual Studio.

2) The application is setting up a future project.

3) In accordance with the solution setting, the application pulls another launch pattern with the command myDTE.LaunchWizard(vsTemplatePath, ref contextParams);

3) The template in turn launches another (other) IWizard to generate project templates and add them to the solution.

Problem: All projects generated in this way are generated to the root of the Solution.

How to generate a project with myDTE.LaunchWizard(vsTemplatePath, ref contextParams); to the logical folder of the solution (SolutionFolder)?

(I can provide the necessary parts of the code and information on request)

  • For some reason it seems to me that it can hardly be done programmatically. Now, if you change the values ​​of the <SolutionFolder... element in the .vstemplate file <SolutionFolder... then it will work out. Here is a link to the description: SolutionFolder Element (Visual Studio Templates) - Denis Bubnov
  • @DenisBubnov my TemplateWizard generates a number of projects depending on the selected solution configuration. I can not set a fixed number of projects in the ProjectCollection. So there is one more question, the answer to which also suits me: ru.stackoverflow.com/questions/603829/… - V. Dmitriy
  • Apparently I misunderstood something, well, let's see, maybe a good answer will be given - Denis Bubnov

0