Engine.BuildProjectFiles Method

Definition

Loads a set of project files from disk and then builds the given list of targets for each project.

public:
 bool BuildProjectFiles(cli::array <System::String ^> ^ projectFiles, cli::array <cli::array <System::String ^> ^> ^ targetNamesPerProject, cli::array <Microsoft::Build::BuildEngine::BuildPropertyGroup ^> ^ globalPropertiesPerProject, cli::array <System::Collections::IDictionary ^> ^ targetOutputsPerProject, Microsoft::Build::BuildEngine::BuildSettings buildFlags, cli::array <System::String ^> ^ toolsVersions);
public bool BuildProjectFiles (string[] projectFiles, string[][] targetNamesPerProject, Microsoft.Build.BuildEngine.BuildPropertyGroup[] globalPropertiesPerProject, System.Collections.IDictionary[] targetOutputsPerProject, Microsoft.Build.BuildEngine.BuildSettings buildFlags, string[] toolsVersions);
member this.BuildProjectFiles : string[] * string[][] * Microsoft.Build.BuildEngine.BuildPropertyGroup[] * System.Collections.IDictionary[] * Microsoft.Build.BuildEngine.BuildSettings * string[] -> bool
Public Function BuildProjectFiles (projectFiles As String(), targetNamesPerProject As String()(), globalPropertiesPerProject As BuildPropertyGroup(), targetOutputsPerProject As IDictionary(), buildFlags As BuildSettings, toolsVersions As String()) As Boolean

Parameters

projectFiles
String[]

A string list of project files to build. This value cannot be null.

targetNamesPerProject
String[][]

A BuildPropertyGroup array of targets for each project.

globalPropertiesPerProject
BuildPropertyGroup[]

An IDictionary array of properties for each project. This value cannot be null.

targetOutputsPerProject
IDictionary[]

A BuildSettings array of tables for target outputs. This value cannot be null.

buildFlags
BuildSettings

A string array of additional build flags.

toolsVersions
String[]

The ToolsVersion to impose on the project in this build.

Returns

true if the project built successfully; otherwise, false.

Remarks

This overload takes a set of global properties for each project to use for the build, returns the target outputs, and also enables the caller to specify additional build flags.

Applies to