TargetCollection.RemoveTarget(Target) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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