Partilhar via


ITaskFactory2 Interface

Definition

Interface that a task factory Instance should implement if it wants to be able to use new UsingTask parameters such as Runtime and Architecture.

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

Properties

FactoryName

Gets the name of the factory.

(Inherited from ITaskFactory)
TaskType

Gets the type of the task this factory will instantiate. Implementations must return a value for this property.

(Inherited from ITaskFactory)

Methods

CleanupTask(ITask)

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

(Inherited from ITaskFactory)
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.

CreateTask(IBuildEngine)

Create an instance of the task to be used.

(Inherited from ITaskFactory)
GetTaskParameters()

Get the descriptions for all the task's parameters.

(Inherited from ITaskFactory)
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)

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

(Inherited from ITaskFactory)

Applies to