BuildItem.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 item's "type" string. Note that changing the "Type" of an BuildItem requires the whole project to be re-evalauted. This is because items are frequently stored in hash tables based on their item types, so changing an item type would mess up the tables. In the current implementation the caller who changes the item type is responsible for calling Project.MarkAsDirty().

C#
public string Name { get; set; }

Property Value

The name of the item collection to which the item belongs.

Remarks

Advertencia

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

Producto Versiones
MSBuild 17
MSBuild (.NET Core) 17