title: Adding a TestSettings file to SolutionItems in VisualStudio
body: <pre><code>((EnvDTE80.Solution2)dte.Solution).GetProjectItemTemplate("Test Settings", "Test");
  </code></pre>
  
  <p>I need to add a new TestSettings object programmatically to a C# project in Visual Studio. To do this I need to get the path of the template file. The call to GetProjectItemTemplate should do this, but fails for this type of template. Other template types, for example, a CSharp class, work fine. Even custom types that I have registered work fine. But not the TestSettings type.</p>
  
  <p>You can see the template in this zip file:</p>
  
  <p>C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\ItemTemplates\Test\1033\TestSettings.zip</p>
  
  <p>Any idea why this template type doesn't work?</p>