Freigeben über


ProjectRootElement.AddTarget(String) Method

Definition

Convenience method that picks a location based on a heuristic: Creates a target at the end of the project.

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

Parameters

name
String

The name of the target to be added.

Returns

The added target.

Remarks

Convenience method that picks a location based on a heuristic: Creates a target at the end of the project.

Applies to