TargetCollection.AddNewTarget(String) TargetCollection.AddNewTarget(String) TargetCollection.AddNewTarget(String) TargetCollection.AddNewTarget(String) Method

Definition

Adds a new Target element to the end of the project.

public:
 Microsoft::Build::BuildEngine::Target ^ AddNewTarget(System::String ^ targetName);
public Microsoft.Build.BuildEngine.Target AddNewTarget (string targetName);
member this.AddNewTarget : string -> Microsoft.Build.BuildEngine.Target
Public Function AddNewTarget (targetName As String) As Target

Parameters

targetName
String String String String

The Name attribute of the new Target element.

Returns

A Target object representing the created Target element.

Applies to