This task is used to break your build file into smaller chunks. You can load a partial build file and have it included in the build file.
Any global (project-level) tasks in the included build file are executed when this task is executed. Tasks in target elements are only executed if that target is executed.
The project element attributes are ignored.
This task can only be in the global (project-level) section of the build file.
Attribute | Description | Required |
|---|---|---|
buildfile | Build file to include. | True |
failonerror | Determines whether task failure stops the build, or is just reported. Default is "true." | False |
verbose | Task reports detailed build log messages. Default is "false." | False |
if | If true then the task will be executed; otherwise skipped. Default is "true." | False |
unless | Opposite of if. If false then the task will be executed; otherwise skipped. Default is "false." | False |
<include buildfile="GetProjectVersion.include"/>