TargetCollection.RemoveTarget(Target) Method

Definition

This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.ConstructionMicrosoft.Build.EvaluationMicrosoft.Build.Execution

Removes a target from the project, and removes the corresponding <Target> element from the project's XML.

public:
 void RemoveTarget(Microsoft::Build::BuildEngine::Target ^ targetToRemove);
public void RemoveTarget (Microsoft.Build.BuildEngine.Target targetToRemove);
member this.RemoveTarget : Microsoft.Build.BuildEngine.Target -> unit
Public Sub RemoveTarget (targetToRemove As Target)

Parameters

targetToRemove
Target

Remarks

Warning

This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.Construction Microsoft.Build.Evaluation Microsoft.Build.Execution

Applies to