ITaskFactory2 ITaskFactory2 ITaskFactory2 ITaskFactory2 Interface

Definition

Describes and extended ITaskFactory interface that a task factory instance should implement.

public interface class ITaskFactory2 : Microsoft::Build::Framework::ITaskFactory
public interface ITaskFactory2 : Microsoft.Build.Framework.ITaskFactory
type ITaskFactory2 = interface
    interface ITaskFactory
Public Interface ITaskFactory2
Implements ITaskFactory
Implements

Methods

CleanupTask(ITask) CleanupTask(ITask) CleanupTask(ITask) CleanupTask(ITask)

Cleans up any context or state that may have been built up for a given task.

(Inherited from ITaskFactory)
CreateTask(IBuildEngine) CreateTask(IBuildEngine) CreateTask(IBuildEngine) CreateTask(IBuildEngine)

Creates an instance of the task to be used in a batch. The task factory logging host will log messages in the context of the task.

(Inherited from ITaskFactory)
CreateTask(IBuildEngine, IDictionary<String,String>) CreateTask(IBuildEngine, IDictionary<String,String>) CreateTask(IBuildEngine, IDictionary<String,String>) CreateTask(IBuildEngine, IDictionary<String,String>)

Create an instance of the task to be used, with an optional set of "special" parameters set on the individual task invocation using the MSBuildRuntime and MSBuildArchitecture default task parameters. MSBuild provides an implementation of this interface, TaskHostFactory, that uses "MSBuildRuntime", with values "CLR2", "CLR4", "CurrentRuntime", and "*" (Any); and "MSBuildArchitecture", with values "x86", "x64", "CurrentArchitecture", and "*" (Any). An implementer of ITaskFactory2 can choose to use these pre-defined MSBuildRuntime and MSBuildArchitecture values, or can specify new values for these parameters.

GetTaskParameters() GetTaskParameters() GetTaskParameters() GetTaskParameters()

Gets the descriptions for all the task's parameters.

(Inherited from ITaskFactory)
Initialize(String, IDictionary<String,String>, IDictionary<String,TaskPropertyInfo>, String, IBuildEngine) Initialize(String, IDictionary<String,String>, IDictionary<String,TaskPropertyInfo>, String, IBuildEngine) Initialize(String, IDictionary<String,String>, IDictionary<String,TaskPropertyInfo>, String, IBuildEngine) Initialize(String, IDictionary<String,String>, IDictionary<String,TaskPropertyInfo>, String, IBuildEngine)

Initializes this factory for instantiating tasks with a particular inline task block and a set of UsingTask parameters. MSBuild provides an implementation of this interface, TaskHostFactory, that uses "Runtime", with values "CLR2", "CLR4", "CurrentRuntime", and "*" (Any); and "Architecture", with values "x86", "x64", "CurrentArchitecture", and "*" (Any). An implementer of ITaskFactory2 can choose to use these pre-defined Runtime and Architecture values, or can specify new values for these parameters.

Initialize(String, IDictionary<String,TaskPropertyInfo>, String, IBuildEngine) Initialize(String, IDictionary<String,TaskPropertyInfo>, String, IBuildEngine) Initialize(String, IDictionary<String,TaskPropertyInfo>, String, IBuildEngine) Initialize(String, IDictionary<String,TaskPropertyInfo>, String, IBuildEngine)

Initializes this factory for instantiating tasks with a particular inline task block.

(Inherited from ITaskFactory)

Properties

FactoryName FactoryName FactoryName FactoryName

Gets the name of the factory.

(Inherited from ITaskFactory)
TaskType TaskType TaskType TaskType

Gets the type of the task this factory will instantiate.

(Inherited from ITaskFactory)

Applies to