TaskExtension Base Class

 

For the latest documentation on Visual Studio 2017 RC, see Visual Studio 2017 RC Documentation.

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.

The following table describes the parameters of the base classes.

ParameterDescription
BuildEngineOptional 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.
BuildEngine2Optional 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.
BuildEngine3Optional IBuildEngine3 parameter.

Specifies the build engine interface provided by the host.
HostObjectOptional 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.
LogOptional TaskLoggingHelper read-only parameter.

Gets a TaskLoggingHelperExtension object that contains task logging methods.

Task Reference
Tasks

Show: