Engine.BuildProjectFiles Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Loads a set of project files from disk, and builds the given list of targets for each one. This overload takes a set of global properties for each project to use for the build, returns the target outputs, and also allows the caller to specify additional build flags.
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[]
Array of project files to build (can't be null)
- targetNamesPerProject
- String[][]
Array of targets for each project(can't be null)
- globalPropertiesPerProject
- BuildPropertyGroup[]
Array of properties for each project (can't be null)
- targetOutputsPerProject
- IDictionary[]
Array of tables for target outputs (can't be null)
- buildFlags
- BuildSettings
- toolsVersions
- String[]
Tools version to impose on the project in this build
Returns
True if all given project build successfully
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.