Description: Cleans and then builds a Delphi project for Win32 by running MSBuild in an external console process.
Calling convention: CIP_MSBuild(AProjectFile: String; AConfig: String; var AConsoleResult: String): Integer
Parameters:
AProjectFile: Delphi project file path.
AConfig: build configuration name.
AConsoleResult: output parameter receiving the console text.
Returns: External command exit code. Variant NULL project or configuration returns NULL without running a build.
Availability: Default; Windows build-server utility. It requires Delphi Studio 22.0 and MSBuild, creates or replaces CIP_MSBuild.bat beside the project, and performs a clean before building.
Example:
ExitCode := CIP_MSBuild("C:\Projects\App.dproj", "Release", BuildOutput);