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.
Removes the specified Target element from the project.
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
The Name
attribute of the Target
element to remove.