ITaskFactory::Initialize Method (String^, IDictionary<String^, TaskPropertyInfo^>^, String^, IBuildEngine^)
Visual Studio 2015
Initializes this factory for instantiating tasks with a particular inline task block.
MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.
Assembly: Microsoft.Build.Framework (in Microsoft.Build.Framework.dll)
bool Initialize(
String^ taskName,
IDictionary<String^, TaskPropertyInfo^>^ parameterGroup,
String^ taskBody,
IBuildEngine^ taskFactoryLoggingHost
)
Parameters
- taskName
-
Type:
System::String^
Name of the task.
- parameterGroup
-
Type:
System.Collections.Generic::IDictionary<String^, TaskPropertyInfo^>^
The parameter group.
- taskBody
-
Type:
System::String^
The task body.
- taskFactoryLoggingHost
-
Type:
Microsoft.Build.Framework::IBuildEngine^
The task factory logging host.
The MSBuild engine calls this method to initialize the factory. After initialization, the factory can be asked whether or not task names can be created by the factory.
The taskFactoryLoggingHost will log messages in the context of the target where the task is first used.
Show: