To run a distributed Visual Studio build from a script, application or command line, use the BuildConsole.exe command line interface.
Or:
xgConsole.exe <Target> [Options]
Note that if you get a "'xgConsole' is not recognized as an internal or external command, operable program or batch file." error when running xgConsole, either manually add the IncrediBuild installation folder to your system path or rerun the IncrediBuild setup application on your machine with the "Add IncrediBuild folder to the system path" option selected.
| Option | Function | Notes |
| @ |
Specified a response file containing a xgConsole command line. | - Use this option when the command line for running xgConsole is too long to specify explicitly in your script. |
| /Clean | Cleans all output files (XML Interface only). | |
| /Rebuild | Rebuilds all tasks (XML Interface only). | |
| /SETENV="<name>=<value>" | Sets or overrides environment variables for the context of the run build. | Use /SetEnv several times to set/override multiple variables. |
| /Log[=filename] | Writes build output to a file. | If filename is omitted, a file named IB_<target-name>.log is created in the current directory. |
| /Mon[=filename] | Writes a copy of the build progress (.ib_mon) file to the specified location. | - If only a folder name is given, IncrediBuild will generate a GUID for the file name. - A message containing the location of the saved .ib_mon file will be added to the end of the build output. |
| /out=filename | Redirects entire command line output to a file. | |
| /Silent | Does not write anything to the standard output. | Default behavior is to write the build results, as seen in the Build Monitor's Output display. |
| /Attach | Displays the build output of either the current or the last build. | If a build is currently running on the machine, this displays the output for the build up to that point, and continues displaying the build's output until it ends. If no build is running, xgConsole will display the entire build output for the last build initiated from this machine. |
| /Wait | If another build initiated by this Agent is currently running, waits until that build is finished and then starts the new build. This is also the default behavior. | |
| /NoWait | When specified, if another build initiated by this Agent is already running xgConsole will exit with a "Another build already running" message. | |
| /NoLogo | Suppresses the "Xoreax IncrediBuild" header in the build output. | |
| /Beep | Plays a sound when build is complete. | |
| /Stop | Stops a currently running build on the local machine. | xgConsole will return the code 3 when a build has been stopped. If /stop was used and no build is currently running, 2 will be returned. |
| /Enable | Enables the IncrediBuild Agent. | |
| /Disable | Disables the IncrediBuild Agent. | |
| /Reset | Clears the Agent's file cache contents. | |
| /Title=<build title> | Specifies a custom header line which will be displayed in the beginning of the build output text. This title will also be used for the Build History and Build Monitor displays. | Value may be surrounded by quotes. |
| /QueryPackage="<Package>" | Checks whether a specific IncrediBuild extension package is allocated to the Agent, and sets exit code to 0 (allocated) or 1 (not allocated). | "<Package>" can be either "XGE", "VC" or "MultiCPU". |
| /ShowCmd | Shows, for each file built, the command-line used by IncrediBuild to build the file (XML Interface only). | |
| /ShowAgent | Shows the Agent used to build each file (XML Interface only). | |
| /ShowTime | Shows the Start and Finish time for each file built (XML Interface only). | |
| /OpenMonitor | Opens the Build Monitor window showing the build progress. | |
| /UseIDEMonitor | When xgConsole is run from the Visual Studio IDE with this option, the integrated IDE Build Monitor will display the build progress. | |
| /MaxCPUS=<n> | Override global max. CPUs/Cores in build setting | |
| /AvoidLocal=[On/Off] | Overrides the Agent Settings dialog Avoid task execution on local machine when possible option. | A value (either ON or OFF) is mandatory. |
| /MaxWinVer="<Version>" | Specifies the maximal required operating system required by remote Agents assigned to this build. | Agents with a newer OS will not be assigned to the build. Available values are: NT, 2000, XP, 2003, VISTA, 2008 and 7. |
| /MinWinVer="<Version>" | Specifies the minimal required operating system required by remote Agents assigned to this build. | Agents with an older OS will not be assigned to the build. Available values are: NT, 2000, XP, 2003, VISTA, 2008 and 7. |
| /StopOnErrors | When specified, the build will stop as soon as an error is encountered. | |
| /LogLevel="<Level>" | Overrides the logging level for this build | "<Level>" can be one of the following: Minimal, Basic, Intermediate, Extended, Detailed |
| /Help | Shows usage help and version information. |
0 - No errors were encountered
1 - Errors were encountered during the operation.
2 - A fatal IncrediBuild error was encountered (Invalid parameters, input file not found etc.).
3 - The operation was stopped before completing.
| The CHM file was converted to HTML by chm2web software. |