Compartilhar via


CreateProperty.ValueSetByTask Property

Definition

This is to fool MSBuild into not doing its little TLDA trick whereby even if a target is up-to-date, it will still set the properties that were meant to be set using the CreateProperty task. This is because MSBuild is smart enough to figure out the value of the output property without running the task. But if the input parameter is differently named than the output parameter, MSBuild can't be smart enough to do that. This is an important scenario for people who want to know whether a particular target was up-to-date or not.

This API supports the product infrastructure and is not intended to be used directly from your code.

public:
 property cli::array <System::String ^> ^ ValueSetByTask { cli::array <System::String ^> ^ get(); };
[Microsoft.Build.Framework.Output]
public string[] ValueSetByTask { get; }
[Microsoft.Build.Framework.Output]
public string[] ValueSetByTask { [System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")] get; }
[<Microsoft.Build.Framework.Output>]
member this.ValueSetByTask : string[]
[<Microsoft.Build.Framework.Output>]
[<get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]
member this.ValueSetByTask : string[]
Public ReadOnly Property ValueSetByTask As String()

Property Value

String[]

The same value as the Value property.

Attributes

Remarks

Use this property only when you want to avoid having the output property set by MSBuild when it skips the enclosing target because the outputs are up-to-date.

Applies to