My multiproject vstemplate looks as below
<TemplateContent> <ProjectCollection><SolutionFolder Name="samplefolder"> <ProjectTemplateLink ProjectName="$safeprojectname$.projectone"> sample.projectone\MyTemplate.vstemplate </ProjectTemplateLink> <ProjectTemplateLink ProjectName="$safeprojectname$.projecttwo"> sample.projecttwo\MyTemplate.vstemplate </ProjectTemplateLink> <ProjectTemplateLink ProjectName="$safeprojectname$.projectthree"> sample.projectthree\MyTemplate.vstemplate </ProjectTemplateLink></SolutionFolder> </ProjectCollection> </TemplateContent>
Problem is I need to have the solutonfolder name to be same as the the projectname entered by user. If I give $safeprojectname$' in the place of "samplefolder" the solution folder name is not being replaced.
i have tried customizing using wizard, created a solution folder under the solution and removed the projects from solution and added them to the solution folder which is created.
But this is causing issue when the user who is using template, creates a blank solution and creates a solution folder manually and then tries to create the project from the template by right clicking the solution folder.
How can I get the source(where the user has choosed to create new project) on the solution or on the solution folder?
If I capture the source where user is trying to create new project from template, then I can write in wizard to add the solution folder under that source and move projects to the solution folder.
please help.