Bagikan melalui


MSBuild.Targets Property

Definition

The targets to build in each project specified by the Projects property.

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

public:
 property cli::array <System::String ^> ^ Targets { cli::array <System::String ^> ^ get(); void set(cli::array <System::String ^> ^ value); };
public string[] Targets { get; set; }
public string[] Targets { [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.Targets : 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.Targets : string[] with get, set
Public Property Targets As String()

Property Value

String[]

Array of target names.

Attributes

Remarks

If no targets are specified in the MSBuild task, the default targets specified in the project files are built.

Applies to