BuildTask.Name Property

Definition

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

Accessor for the task's "name" element.

C#
public string Name { get; }
C#
public string Name { [System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")] get; }

Property Value

The task name.

Attributes

Remarks

Avertissement

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

Produit Versions
MSBuild 17
MSBuild (.NET Core) 17