Note that there are some explanatory texts on larger screens.

plurals
  1. POVisual Studio 2013/2015 C++ Item Templates Missing
    primarykey
    data
    text
    <p>I am trying to make some simple Item Templates for Visual Studio 2013 (Professional) C++ projects, but Visual Studio seems to be fighting with me. I started using the <code>File -&gt; Export Template...</code> wizard, which completed and generated a zip file, but alas, the new template was nowhere to be seen on the <code>Add New Item</code> dialog, so I started manually editing it to see if I could fix it.</p> <p>Here is my test <code>.vstemplate</code> file:</p> <pre><code>&lt;VSTemplate Version="3.0.0" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005" Type="Item"&gt; &lt;TemplateData&gt; &lt;DefaultName&gt;test&lt;/DefaultName&gt; &lt;Name&gt;Test&lt;/Name&gt; &lt;Description&gt;Test item template.&lt;/Description&gt; &lt;ProjectType&gt;VC&lt;/ProjectType&gt; &lt;!--&lt;SortOrder&gt;10&lt;/SortOrder&gt;--&gt; &lt;Icon&gt;icon.ico&lt;/Icon&gt; &lt;/TemplateData&gt; &lt;TemplateContent&gt; &lt;ProjectItem TargetFileName="$fileinputname$.h" ReplaceParameters="true"&gt;test.h&lt;/ProjectItem&gt; &lt;/TemplateContent&gt; &lt;/VSTemplate&gt; </code></pre> <p>I've tried using both <code>VC</code> and <code>VisualC</code> for <code>&lt;ProjectType&gt;</code> and placing the template in various folders, in both zipped and expanded forms.</p> <p>After changing <code>&lt;ProjectType&gt;</code> to <code>CSharp</code> and creating a C# project it shows up immediately. Interestingly, if the <code>%USERPROFILE%\Documents\Visual Studio 2013\Templates\ItemTemplates\Visual C#</code> directory is empty, the template will now show up if it is in <code>%USERPROFILE%\Documents\Visual Studio 2013\Templates\ItemTemplates</code> or <code>%USERPROFILE%\Documents\Visual Studio 2013\Templates\ItemTemplates\Visual C++ Project</code> directories, but if a copy of it is also in the <code>Visual C#</code> directory it shows up twice in the new item dialog...</p> <p>I know there was a bug with the Visual Studio 2013 Express RC where the New Item dialog wouldn't show any templates at all, even the built-in ones, so I'm thinking this might be a bug in Visual Studio, or just another example of Microsoft's disturbing disregard for C++.</p> <p>Is there something I'm missing here or is this a bug with VS2013? If so does anyone know of any workaround?</p> <p>Edit: This problem still exists in Visual Studio 2015 RC</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload