I am trying to create a template that will create 2 projects in the existing solution without creating a folder in the existing solution.
For example:
C:\Solutions\Solutions.sln
C:\Solutions\Project1\Project1.csproj
C:\Solutions\Project2\Project2.csproj
On Visual Studio Solutions Explorer, right click on solution and add new project. The template should add 2 new projects
C:\Solutions\Solutions.sln
C:\Solutions\Project1\Project1.csproj
C:\Solutions\Project2\Project2.csproj
C:\Solutions\Project3\Project3.csproj
C:\Solutions\Project4\Project4.csproj
Currently my template is adding 2 projects to the solutions but with a structure of
C:\Solutions\Solutions.sln
C:\Solutions\Project1\Project1.csproj
C:\Solutions\Project2\Project2.csproj
C:\Solutions\Noun\Project3\Project3.csproj
C:\Solutions\Noun\Project4\Project4.csproj
the .vstemplate file I have:
<?xml version="1.0"?>
<VSTemplate xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Type="ProjectGroup" Version="3.0.0" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005">
<TemplateData>
<Name>Template Pack</Name>
<Description>Visual Studio 2010 templates</Description>
<Icon>__Template_small.png</Icon>
<PreviewImage>__Template_large.png</PreviewImage>
<ProjectType>CSharp</ProjectType>
<SortOrder>1000</SortOrder>
<CreateNewFolder>false</CreateNewFolder>
<DefaultName>Noun</DefaultName>
<ProvideDefaultName>true</ProvideDefaultName>
<EnableLocationBrowseButton>true</EnableLocationBrowseButton>
<LocationField>Enabled</LocationField>
<RequiredFrameworkVersion>4.0</RequiredFrameworkVersion>
</TemplateData>
<TemplateContent>
<ProjectCollection>
<ProjectTemplateLink ProjectName="$safeprojectname$">MyTemplate\MyTemplate.vstemplate</ProjectTemplateLink>
<ProjectTemplateLink ProjectName="$safeprojectname$.Test">MyTemplate.Test\MyTemplateTest.vstemplate</ProjectTemplateLink>
</ProjectCollection>
</TemplateContent>
</VSTemplate>
Thanks for your help. :)