Task Base Class

 

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

Many tasks ultimately inherit from the Task class. This class adds several parameters to the tasks that derive from them. These parameters are listed in this document.

The following table describes the parameters of this base class.

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.

The logging helper object..

Task Reference
Tasks

Show: