title: Visual Studio Templates - adding additional pre-existing projects
body: <p>I'm working on a Visual Studio template where the generated project relies on a number of references, which happen to be other projects under source control.</p>
  
  <p>The question is how do I set this up in my ProjectGroup template?  For example, if I have an already existing project at "C:\Stuff\MyUtilityProject\Utility.csproj" with a single file (Tools.cs) that I want to add to my template, how would I go about this?</p>
  
  <p>Here's what my vstempalte looks like.  FYI - I am having no issues with the ProjectTemplateLink or creation of the Solution folder, just in adding the pre-existing Utility.csproj to my new solution:</p>
  
  <p>Thanks in advance!</p>
  
  <pre><code>&lt;VSTemplate Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005" Type="ProjectGroup"&gt;
    &lt;TemplateData&gt;
      &lt;Name&gt;MySampleSolution&lt;/Name&gt;
      &lt;Description&gt;My Test Project&lt;/Description&gt;
      &lt;ProjectType&gt;CSharp&lt;/ProjectType&gt;
      &lt;Icon&gt;__TemplateIcon.ico&lt;/Icon&gt;
    &lt;/TemplateData&gt;
    &lt;TemplateContent&gt;
          &lt;ProjectCollection&gt;
              &lt;SolutionFolder Name="Content"&gt;
                  &lt;Project File="C:\Stuff\MyUtilityProject\Utility.csproj"&gt;
                      &lt;ProjectItem&gt;Tools.cs&lt;/ProjectItem&gt;
                  &lt;/Project&gt;
              &lt;/SolutionFolder&gt;
          &lt;ProjectTemplateLink ProjectName="MyWorkingTemplate"&gt;
              MyWorkingTemplate\MyTemplate.vstemplate
          &lt;/ProjectTemplateLink&gt;
          &lt;/ProjectCollection&gt;
    &lt;/TemplateContent&gt;
  &lt;/VSTemplate&gt;
  </code></pre>