Hidden Element (Visual Studio Templates)


The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at Hidden Element (Visual Studio Templates).

Specifies whether the template appears in either the New Project or Add New Item dialog box.


<Hidden> true/false </Hidden>  

The following sections describe attributes, child elements, and parent elements.



Child Elements


Parent Elements

TemplateDataRequired element.

Categorizes the template and defines how it displays in either the New Project or the Add New Item dialog box.

A text value is required.

The text must be either true or false, indicating whether or not the template will appear in the New Project or Add New Item dialog boxes.

Hidden is an optional element.

If specified, no other child elements of the TemplateData element are required.

The following example illustrates the metadata for a Visual C# template.

<VSTemplate Type="Project" Version="3.0.0"  
        <Name>My template</Name>  
        <Description>A basic template</Description>  
        <Project File="MyTemplate.csproj">  

Visual Studio Template Schema Reference
Creating Project and Item Templates