Bagikan melalui


MSBuild.Properties Property

Definition

A list of property name/value pairs to apply as global properties to the child project.
A typical input: "propname1=propvalue1", "propname2=propvalue2", "propname3=propvalue3".

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

public:
 property cli::array <System::String ^> ^ Properties { cli::array <System::String ^> ^ get(); void set(cli::array <System::String ^> ^ value); };
public string[] Properties { get; set; }
public string[] Properties { [System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")] get; [System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")] set; }
member this.Properties : string[] with get, set
[<get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]
[<set: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]
member this.Properties : string[] with get, set
Public Property Properties As String()

Property Value

String[]

A semicolon-delimited list of property name/value pairs to apply as global properties to the child project.

Attributes

Remarks

The fact that this is a string[] makes the following illegal: <MSBuild Properties="TargetPath=@(OutputPathItem)" /> The engine fails on this because it doesn't like item lists being concatenated with string constants when the data is being passed into an array parameter. So the workaround is to write this in the project file: <MSBuild Properties="@(OutputPathItem-&gt;'TargetPath=%(Identity)')" />

Applies to