TaskLoggingHelper Constructors

Definition

Initializes a new instance of the TaskLoggingHelper class.

Overloads

TaskLoggingHelper(ITask)

public constructor

TaskLoggingHelper(IBuildEngine, String)

Public constructor which can be used by task factories to assist them in logging messages.

TaskLoggingHelper(ITask)

Source:
TaskLoggingHelper.cs
Source:
TaskLoggingHelper.cs

public constructor

C#
public TaskLoggingHelper(Microsoft.Build.Framework.ITask taskInstance);

Parameters

taskInstance
ITask

task containing an instance of this class

Applies to

MSBuild 17 and other versions
Product Versions
MSBuild 15, 16, 17
MSBuild (.NET Core) 15, 16, 17

TaskLoggingHelper(IBuildEngine, String)

Source:
TaskLoggingHelper.cs
Source:
TaskLoggingHelper.cs

Public constructor which can be used by task factories to assist them in logging messages.

C#
public TaskLoggingHelper(Microsoft.Build.Framework.IBuildEngine buildEngine, string taskName);

Parameters

buildEngine
IBuildEngine

The build engine.

taskName
String

The task name.

Applies to

MSBuild 17 and other versions
Product Versions
MSBuild 15, 16, 17
MSBuild (.NET Core) 15, 16, 17