Share via


BuildRequestData Constructor (String, IDictionary<String, String>, String, array<String , HostServices, BuildRequestDataFlags)

Constructs a BuildRequestData for build requests with a given project path.

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 ( _
    projectFullPath As String, _
    globalProperties As IDictionary(Of String, String), _
    toolsVersion As String, _
    targetsToBuild As String(), _
    hostServices As HostServices, _
    flags As BuildRequestDataFlags _
)
public BuildRequestData(
    string projectFullPath,
    IDictionary<string, string> globalProperties,
    string toolsVersion,
    string[] targetsToBuild,
    HostServices hostServices,
    BuildRequestDataFlags flags
)
public:
BuildRequestData(
    String^ projectFullPath, 
    IDictionary<String^, String^>^ globalProperties, 
    String^ toolsVersion, 
    array<String^>^ targetsToBuild, 
    HostServices^ hostServices, 
    BuildRequestDataFlags flags
)
new : 
        projectFullPath:string * 
        globalProperties:IDictionary<string, string> * 
        toolsVersion:string * 
        targetsToBuild:string[] * 
        hostServices:HostServices * 
        flags:BuildRequestDataFlags -> BuildRequestData
public function BuildRequestData(
    projectFullPath : String, 
    globalProperties : IDictionary<String, String>, 
    toolsVersion : String, 
    targetsToBuild : String[], 
    hostServices : HostServices, 
    flags : BuildRequestDataFlags
)

Parameters

  • projectFullPath
    Type: System.String

    The full path to the project file.

  • globalProperties
    Type: IDictionary<String, String>

    The global properties to use during evaluation of the project.

  • toolsVersion
    Type: System.String

    The tools version to use for the build. May be null.

  • targetsToBuild
    Type: array<System.String[]

    The targets to build.

.NET Framework Security

See Also

Reference

BuildRequestData Class

BuildRequestData Overload

Microsoft.Build.Execution Namespace