TaskExtension Base Class

Many tasks inherit from the TaskExtension class, which itself inherits from the Task class. This inheritance chain adds several parameters to the tasks that derive from them. These parameters are listed in this document.

Parameters

The following table describes the parameters of the base classes.

Parameter

Description

BuildEngine

Optional IBuildEngine parameter.

Specifies the build engine interface available to tasks. The build engine automatically sets this parameter to allow tasks to call back into it.

BuildEngine2

Optional IBuildEngine2 parameter.

Specifies the build engine interface available to tasks. The build engine automatically sets this parameter to allow tasks to call back into it.

This is a convenience property so that task authors inheriting from this class do not have to cast the value from IBuildEngine to IBuildEngine2.

BuildEngine3

Optional IBuildEngine3 parameter.

Specifies the build engine interface provided by the host.

HostObject

Optional ITaskHost parameter.

Specifies the host object instance (can be null). The build engine sets this property if the host IDE has associated a host object with this particular task.

Log

Optional TaskLoggingHelper read-only parameter.

Gets a TaskLoggingHelperExtension object that contains task logging methods.

See Also

Concepts

MSBuild Tasks

Other Resources

MSBuild Task Reference