We recommend using Visual Studio 2017

PreviewImage 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 PreviewImage Element (Visual Studio Templates).

Specifies the preview image, as a file name, for the preview image that will appear in either the New Project or Add New Item dialog box.

<VSTemplate>
<TemplateData>
<PreviewImage>

<PreviewImage>"filename"</PreviewImage>  

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

Attributes

None.

Child Elements

None.

Parent Elements

ElementDescription
TemplateDataRequired element.

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

A text value is required.

The text must be a string that represents a file name.

PreviewImage is an optional element.

Visual Studio Template Schema Reference
Creating Project and Item Templates

Show: