Skip to content

Latest commit

 

History

History
73 lines (55 loc) · 2.07 KB

File metadata and controls

73 lines (55 loc) · 2.07 KB
title ParameterGroup Element
description Learn about the MSBuild ParameterGroup element, which contains an optional list of parameters present on the task generated by a UsingTask TaskFactory.
ms.date 03/13/2017
ms.topic reference
dev_langs
VB
CSharp
C++
helpviewer_keywords
<ParameterGroup> element [MSBuild]
ParameterGroup element [MSBuild]
author ghogen
ms.author ghogen
ms.subservice msbuild

ParameterGroup element

Contains an optional list of parameters that will be present on the task that is generated by a UsingTask TaskFactory. For more information, see UsingTask element (MSBuild).

<Project> <UsingTask> <ParameterGroup>

Syntax

<ParameterGroup />

Attributes and elements

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

Attributes

None.

Child elements

Element Description
Parameter Contains information about a specific parameter for a task that is generated by a UsingTask TaskFactory. The name of the element is the name of the parameter.

Parent elements

Element Description
UsingTask Provides a way to register tasks in MSBuild. There may be zero or more UsingTask elements in a project.

Example

The following example shows how to use the ParameterGroup element.

<UsingTask TaskName="MyTask" AssemblyName="My.Assembly" TaskFactory="MyTaskFactory">
       <ParameterGroup>
              <Parameter1 ParameterType="System.String" Required="False" Output="False"/>
              <Parameter2 ParameterType="System.Int" Required="True" Output="False"/>
             ...
</ParameterGroup>
       <Task Evaluate="true">
       ... Task factory-specific data ...
       </Task>
</UsingTask>

See also