Udostępnij za pośrednictwem


RoslynCodeTaskFactory.CreateTask(IBuildEngine) Method

Definition

Creates an instance of the task to be used.

public:
 virtual Microsoft::Build::Framework::ITask ^ CreateTask(Microsoft::Build::Framework::IBuildEngine ^ taskFactoryLoggingHost);
public Microsoft.Build.Framework.ITask CreateTask (Microsoft.Build.Framework.IBuildEngine taskFactoryLoggingHost);
abstract member CreateTask : Microsoft.Build.Framework.IBuildEngine -> Microsoft.Build.Framework.ITask
override this.CreateTask : Microsoft.Build.Framework.IBuildEngine -> Microsoft.Build.Framework.ITask
Public Function CreateTask (taskFactoryLoggingHost As IBuildEngine) As ITask

Parameters

taskFactoryLoggingHost
IBuildEngine

The task factory logging host will log messages in the context of the task.

Returns

The generated task, or null if the task failed to be created.

Implements

Applies to