Hi,
I have created a project template which includes multiple other templates, so that the wizard can create multiple projects at once.
The structure looks like this:
<VSTemplate Version="3.0.0" Type="ProjectGroup" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005"><TemplateData><Name>Modul Template</Name><Description>Modul Template</Description><ProjectType>CSharp</ProjectType><ProjectSubType></ProjectSubType><SortOrder>1000</SortOrder><CreateNewFolder>true</CreateNewFolder><DefaultName>Name with Namespace</DefaultName><ProvideDefaultName>false</ProvideDefaultName><LocationField>Enabled</LocationField><EnableLocationBrowseButton>true</EnableLocationBrowseButton><Icon>logo.png</Icon></TemplateData><TemplateContent><ProjectCollection><SolutionFolder Name="$projectname$"><ProjectTemplateLink ProjectName="$projectname$.Interface"> x.Interface\MyTemplate.vstemplate</ProjectTemplateLink><ProjectTemplateLink ProjectName="$projectname$.MsSqlProvider"> x.MsSqlProvider\MyTemplate.vstemplate</ProjectTemplateLink><ProjectTemplateLink ProjectName="$projectname$.Provider.Test"> x.Provider.Test\MyTemplate.vstemplate</ProjectTemplateLink><ProjectTemplateLink ProjectName="$projectname$.Provider"> x.Provider\MyTemplate.vstemplate</ProjectTemplateLink><ProjectTemplateLink ProjectName="$projectname$.Service.Tests"> x.Service.Tests\MyTemplate.vstemplate</ProjectTemplateLink><ProjectTemplateLink ProjectName="$projectname$.Service"> x.Service\MyTemplate.vstemplate</ProjectTemplateLink></SolutionFolder></ProjectCollection></TemplateContent><WizardExtension><Assembly>MyWizard, Version=1.0.0.0, Culture=Neutral, PublicKeyToken=7382bc267c5ab762</Assembly><FullClassName>MyWizard.IWizardImplementation</FullClassName></WizardExtension></VSTemplate>
I want to create projects that have the namespace in it as well, so a project might be calledcom.test.core.module1.
When I start the wizard, it creates the following projects:
com.test.core.module1.Interface
com.test.core.module1.MsSqlProvider
etc.
The problem is, that the project folder name also contains com.test.core.module1. which is against the company policy.
Is it somehow possible to only create folders, that contain the last portion of the module name?
e.g.:
Interface (folder name), com.test.core.module1.Interface (Module name and namespace)