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.StringThe full path to the project file.
globalProperties
Type: IDictionary<String, String>The global properties to use during evaluation of the project.
toolsVersion
Type: System.StringThe tools version to use for the build. May be null.
targetsToBuild
Type: array<System.String[]The targets to build.
hostServices
Type: Microsoft.Build.Execution.HostServicesThe host services to use, if any. May be null.
flags
Type: Microsoft.Build.Execution.BuildRequestDataFlagsThe flags to use for the build.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.