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

  • Copy Task
    Describes the Copy task and its parameters.
  • Csc Task
    Describes the Csc task and its parameters.
  • Delete Task
    Describes the Delete task and its parameters.
  • Error Task
    Stops a build and logs an error based on an evaluated conditional statement.
  • Exec Task
    Describes the Exec task and its parameters.
  • FindUnderPath Task
    Determines which items in the specified item collection exist in the specified folder and all of its subfolders.
  • GenerateResource Task
    Converts .txt and .resx files to common language runtime binary .resources files.
  • GetAssemblyIdentity Task
    Retrieves the assembly identities from the specified files and outputs the identity information.
  • LC Task
    Describes the LC task and its parameters.
  • MakeDir Task
    Describes the MakeDir task and its parameters.
  • MSBuild Task
    Describes the MSBuild task and its parameters.
  • ResGen Task
    Describes the ResGen task and its parameters.
  • SGen Task
    Creates an XML serialization assembly for types in the specified assembly.
  • SignFile Task
    Signs the specified file using the specified certificate.
  • Touch Task
    Describes the Touch task and its parameters.
  • Vbc Task
    Describes the Vbc task and its parameters.
  • VCBuild Task
    Describes the VCBuild task and its parameters.
  • Warning Task
    Logs a warning during a build based on an evaluated conditional statement.

See Also

Tasks

How To: Write a Task

Concepts

MSBuild Tasks

Other Resources

MSBuild Reference