ParameterGroup Element

Note

This article applies to Visual Studio 2015. If you're looking for the latest Visual Studio documentation, use the version selector at the top left. We recommend upgrading to Visual Studio 2019. Download it here

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>  
       <TaskBody Evaluate="true">  
      ... Task factory-specific data ...  
       </TaskBody>  
</UsingTask>  

See Also

Tasks
Task Reference
Project File Schema Reference