IBuildEngine::BuildProjectFile Method (String^, array<String^>^, IDictionary^, IDictionary^)
Initiates a build of a project file. If the build is successful, the outputs, if any, of the specified targets are returned.
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.
Assembly: Microsoft.Build.Framework (in Microsoft.Build.Framework.dll)
bool BuildProjectFile( String^ projectFileName, array<String^>^ targetNames, IDictionary^ globalProperties, IDictionary^ targetOutputs )
Parameters
- projectFileName
-
Type:
System::String^
The name of the project file to build.
- targetNames
-
Type:
array<System::String^>^
The names of the target in the project to build. Separate multiple targets with a semicolon (;).
- globalProperties
-
Type:
System.Collections::IDictionary^
An IDictionary of additional global properties to apply to the project. The key and value must be String data types.
- targetOutputs
-
Type:
System.Collections::IDictionary^
The outputs of each specified target.
The targetNames, globalProperties, and targetOutputs parameters can be null.
If no targets are specified, MSBuild builds the default targets of the project.
Target outputs are returned as ITaskItem arrays indexed by target name.