Open Source .NET Development [Electronic resources]

Brian Nantz

نسخه متنی -صفحه : 275/ 144
نمايش فراداده

<include>Include an external build file.

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.

NOTE

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.

NOTE

The project element attributes are ignored.

NOTE

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

Example

<include buildfile="GetProjectVersion.include"/>