TaskLoggingHelper Constructors
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the TaskLoggingHelper class.
TaskLoggingHelper(ITask) |
public constructor |
TaskLoggingHelper(IBuildEngine, String) |
Public constructor which can be used by task factories to assist them in logging messages. |
- Source:
- TaskLoggingHelper.cs
- Source:
- TaskLoggingHelper.cs
public constructor
public:
TaskLoggingHelper(Microsoft::Build::Framework::ITask ^ taskInstance);
C#
public TaskLoggingHelper(Microsoft.Build.Framework.ITask taskInstance);
new Microsoft.Build.Utilities.TaskLoggingHelper : Microsoft.Build.Framework.ITask -> Microsoft.Build.Utilities.TaskLoggingHelper
Public Sub New (taskInstance As ITask)
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 |
- Source:
- TaskLoggingHelper.cs
- Source:
- TaskLoggingHelper.cs
Public constructor which can be used by task factories to assist them in logging messages.
public:
TaskLoggingHelper(Microsoft::Build::Framework::IBuildEngine ^ buildEngine, System::String ^ taskName);
C#
public TaskLoggingHelper(Microsoft.Build.Framework.IBuildEngine buildEngine, string taskName);
new Microsoft.Build.Utilities.TaskLoggingHelper : Microsoft.Build.Framework.IBuildEngine * string -> Microsoft.Build.Utilities.TaskLoggingHelper
Public Sub New (buildEngine As IBuildEngine, taskName As String)
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 |