Compartilhar via


Target.AddNewTask(String) 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

Adds a task with the specified name to the end of this target. This method does all of the work to manipulate the project's XML content.

public:
 Microsoft::Build::BuildEngine::BuildTask ^ AddNewTask(System::String ^ taskName);
public Microsoft.Build.BuildEngine.BuildTask AddNewTask (string taskName);
member this.AddNewTask : string -> Microsoft.Build.BuildEngine.BuildTask
Public Function AddNewTask (taskName As String) As BuildTask

Parameters

taskName
String

Returns

A BuildTask object represents a child Task element of the Target element.

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