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