title: Item Template for VSTemplate file
body: <p>I'm trying to create VS Item Template that will allow adding .vstemplate files to project.</p>
  
  <p>This is how my vsTemplate.vstemplate file currently looks:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;VSTemplate
   xmlns:sdk="http://schemas.microsoft.com/developer/vstemplate-sdkextension/2010"
   xmlns="http://schemas.microsoft.com/developer/vstemplate/2005"
   Version="3.0.0"
   Type="Item"&gt;
      &lt;TemplateData&gt;
          &lt;Name&gt;VS Item Template&lt;/Name&gt;
          &lt;Icon&gt;vsTemplate.ico&lt;/Icon&gt;
          &lt;Description&gt;VS Item Template Files&lt;/Description&gt;
          &lt;DefaultName&gt;vsTemplate&lt;/DefaultName&gt;
          &lt;ProjectType&gt;CSharp&lt;/ProjectType&gt;
          &lt;TemplateID&gt;Microsoft.CSharp.Class&lt;/TemplateID&gt;
          &lt;CreateInPlace&gt;true&lt;/CreateInPlace&gt;
      &lt;/TemplateData&gt;
      &lt;TemplateContent&gt;
          &lt;ProjectItem TargetFileName="Template\$fileinputname$.vstemplate" ReplaceParameters="true"&gt;vsTemplate.data&lt;/ProjectItem&gt;
          &lt;ProjectItem TargetFileName="Template\$fileinputname$.$fileinputextension$.data"&gt;vsTemplate.empty.data&lt;/ProjectItem&gt;
          &lt;ProjectItem TargetFileName="Template\$fileinputname$.ico"&gt;vsTemplate.ico.data&lt;/ProjectItem&gt;
      &lt;/TemplateContent&gt;
  &lt;/VSTemplate&gt;
  </code></pre>
  
  <p>When I am trying to use it (inside vs experimental instance), I am getting this error:</p>
  
  <pre><code>The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
  </code></pre>
  
  <p>How I understand the problem, I need to specify custom build action for .vstemplate file inside .csproj file, something like this:</p>
  
  <pre><code>&lt;VSTemplate Include"..."/&gt;
  </code></pre>
  
  <p>But I don't know how to do that.</p>
  
  <p>What I'am already tried:</p>
  
  <ul>
  <li>set ItemType="VSTemplate" for vstemplate ProjectItem</li>
  <li>use custom Wizard class</li>
  <li>add /log option inside project command line argument window (it does not provide any additional information)</li>
  </ul>