Export (0) Print
Expand All

ITaskFactory2 Interface

.NET Framework 4.5

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

The ITaskFactory2 type exposes the following members.

  NameDescription
Public propertyFactoryNameGets the name of the factory. (Inherited from ITaskFactory.)
Public propertyTaskTypeGets the type of the task this factory will instantiate. (Inherited from ITaskFactory.)
Top

  NameDescription
Public methodCleanupTaskCleans up any context or state that may have been built up for a given task. (Inherited from ITaskFactory.)
Public methodCreateTask(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.)
Public methodCreateTask(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.
Public methodGetTaskParametersGet the descriptions for all the task's parameters. (Inherited from ITaskFactory.)
Public methodInitialize(String, IDictionary<String, TaskPropertyInfo>, String, IBuildEngine)Initializes this factory for instantiating tasks with a particular inline task block. (Inherited from ITaskFactory.)
Public methodInitialize(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.
Top

.NET Framework

Supported in: 4.6, 4.5

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft