ITaskFactory2 Interface

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

Namespace:   Microsoft.Build.Framework
Assembly:  Microsoft.Build.Framework (in Microsoft.Build.Framework.dll)

public interface ITaskFactory2 : ITaskFactory

NameDescription
System_CAPS_pubpropertyFactoryName

Gets the name of the factory.(Inherited from ITaskFactory.)

System_CAPS_pubpropertyTaskType

Gets the type of the task this factory will instantiate.(Inherited from ITaskFactory.)

NameDescription
System_CAPS_pubmethodCleanupTask(ITask)

Cleans up any context or state that may have been built up for a given task.(Inherited from ITaskFactory.)

System_CAPS_pubmethodCreateTask(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.)

System_CAPS_pubmethodCreateTask(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.

System_CAPS_pubmethodGetTaskParameters()

Get the descriptions for all the task's parameters.(Inherited from ITaskFactory.)

System_CAPS_pubmethodInitialize(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.

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

Initializes this factory for instantiating tasks with a particular inline task block.(Inherited from ITaskFactory.)

.NET Framework
Available since 4.5
Return to top
Show: