Skip to content

Latest commit

 

History

History
61 lines (48 loc) · 2.25 KB

customparameters-element-visual-studio-templates.md

File metadata and controls

61 lines (48 loc) · 2.25 KB
title description ms.date ms.subservice ms.topic f1_keywords helpviewer_keywords author ms.author manager
CustomParameters Element (Visual Studio Templates)
Learn about the CustomParameters element and how it groups the custom parameters that are to be passed to the template wizard when the wizard makes parameter replacements.
11/04/2016
general-ide
reference
CustomParameters element [Visual Studio project templates]
maiak
maiak
mijacobs

CustomParameters element (Visual Studio templates)

Groups the custom parameters that are to be passed to the template wizard when the wizard makes parameter replacements.

Syntax

<CustomParameters>
    <CustomParameter/>
    <CustomParameter/>
</CustomParameters>

Attributes and elements

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

Attributes

None.

Child elements

Element Description
CustomParameter Optional element.

Contains a custom parameter name and value to use when a project or item is created from the template. There may be zero or more CustomParameter elements in a CustomParameters element.

Parent elements

Element Description
TemplateContent Specifies the contents of the template.

Remarks

Example

The following example shows how to use several custom parameters in a template. When a project or item is created from a template with the following custom parameters, all instances of $color1$ and $color2$ in the template files will be replaced with Red and Blue, respectively.

<CustomParameters>
    <CustomParameter Name="$color1$" Value="Red"/>
    <CustomParameter Name="$color2$" Value="Blue "/>
</CustomParameters>

See also