Share via


MSBuild Task Reference

Tasks provide the code that runs during the build process. This section explains the library of common tasks that is provided with MSBuild.

In addition to the parameters listed in the topics in this section, each task also has the following parameters:

Parameter

Description

Condition

Optional String parameter.

Boolean expression the MSBuild engine uses to determine whether or not this task will be executed. For information on the conditions supported by MSBuild, see MSBuild Conditions.

ContinueOnError

Optional Boolean parameter

Boolean value that specifies whether the remaining tasks in the target run if this task fails. The task fails because the Execute method either throws an exception or returns false.

If ContinueOnError is set to true, the remaining tasks run and the failed task does not cause the entire target to fail.

If ContinueOnError is set to false, the remaining tasks do not run and the entire target fails.

By default, ContinueOnError is false.

In This Section

See Also

Tasks

How to: Write a Task

Concepts

MSBuild Tasks

Other Resources

MSBuild Reference