Share via


BuildRequestData Constructor (ProjectInstance, array<String , HostServices, BuildRequestDataFlags, IEnumerable<String>)

Constructs a BuildRequestData for build requests based on project instances.

MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.

Namespace:  Microsoft.Build.Execution
Assembly:  Microsoft.Build (in Microsoft.Build.dll)

Syntax

'Declaration
Public Sub New ( _
    projectInstance As ProjectInstance, _
    targetsToBuild As String(), _
    hostServices As HostServices, _
    flags As BuildRequestDataFlags, _
    propertiesToTransfer As IEnumerable(Of String) _
)
public BuildRequestData(
    ProjectInstance projectInstance,
    string[] targetsToBuild,
    HostServices hostServices,
    BuildRequestDataFlags flags,
    IEnumerable<string> propertiesToTransfer
)
public:
BuildRequestData(
    ProjectInstance^ projectInstance, 
    array<String^>^ targetsToBuild, 
    HostServices^ hostServices, 
    BuildRequestDataFlags flags, 
    IEnumerable<String^>^ propertiesToTransfer
)
new : 
        projectInstance:ProjectInstance * 
        targetsToBuild:string[] * 
        hostServices:HostServices * 
        flags:BuildRequestDataFlags * 
        propertiesToTransfer:IEnumerable<string> -> BuildRequestData
public function BuildRequestData(
    projectInstance : ProjectInstance, 
    targetsToBuild : String[], 
    hostServices : HostServices, 
    flags : BuildRequestDataFlags, 
    propertiesToTransfer : IEnumerable<String>
)

Parameters

  • targetsToBuild
    Type: array<System.String[]

    The targets to build.

  • propertiesToTransfer
    Type: IEnumerable<String>

    The list of properties to transfer from the project to any out of process node.

.NET Framework Security

See Also

Reference

BuildRequestData Class

BuildRequestData Overload

Microsoft.Build.Execution Namespace