Partager via


ProjectRootElement.CreateTargetElement(String) Method

Definition

Creates a target. Caller must add it to the location of choice in this project.

public:
 Microsoft::Build::Construction::ProjectTargetElement ^ CreateTargetElement(System::String ^ name);
public Microsoft.Build.Construction.ProjectTargetElement CreateTargetElement (string name);
member this.CreateTargetElement : string -> Microsoft.Build.Construction.ProjectTargetElement
Public Function CreateTargetElement (name As String) As ProjectTargetElement

Parameters

name
String

The name of the target.

Returns

The target.

Remarks

Caller must add the target to the location of choice in this project.

Applies to