BuildProperty.Clone(Boolean) 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

Creates a shallow or deep clone of this BuildProperty object.

A shallow clone points at the same XML element as the original, so that modifications to the name or value will be reflected in both copies. However, the two copies could have different a finalValue.

A deep clone actually clones the XML element as well, so that the two copies are completely independent of each other.

C#
public Microsoft.Build.BuildEngine.BuildProperty Clone(bool deepClone);

Parameters

deepClone
Boolean

Returns

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