Target.RemoveTask(BuildTask) 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 the specified BuildTask from the target. This method correctly updates the project's XML content, so the task will no longer show up when the project is saved out.
public:
void RemoveTask(Microsoft::Build::BuildEngine::BuildTask ^ taskElement);
public void RemoveTask (Microsoft.Build.BuildEngine.BuildTask taskElement);
member this.RemoveTask : Microsoft.Build.BuildEngine.BuildTask -> unit
Public Sub RemoveTask (taskElement As BuildTask)
Parameters
- taskElement
- BuildTask
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