Aracılığıyla paylaş


CodeTaskFactory Class

Definition

Caution

The CodeTaskFactory is not supported on .NET Core. This class is included so that users receive run-time errors and should not be used for any other purpose.

A task factory which can take code dom supported languages and create a task out of it

public ref class CodeTaskFactory : Microsoft::Build::Framework::ITaskFactory
public ref class CodeTaskFactory sealed : Microsoft::Build::Framework::ITaskFactory
public class CodeTaskFactory : Microsoft.Build.Framework.ITaskFactory
[System.Obsolete("The CodeTaskFactory is not supported on .NET Core.  This class is included so that users receive run-time errors and should not be used for any other purpose.", true)]
public sealed class CodeTaskFactory : Microsoft.Build.Framework.ITaskFactory
type CodeTaskFactory = class
    interface ITaskFactory
[<System.Obsolete("The CodeTaskFactory is not supported on .NET Core.  This class is included so that users receive run-time errors and should not be used for any other purpose.", true)>]
type CodeTaskFactory = class
    interface ITaskFactory
Public Class CodeTaskFactory
Implements ITaskFactory
Public NotInheritable Class CodeTaskFactory
Implements ITaskFactory
Inheritance
CodeTaskFactory
Attributes
Implements

Remarks

CodeDom is not supported for .NET Core so this code task factory simply logs an error that it isn't supported. If we don't compile this class, then the user will get an error that the class doesn't exist which is a bad experience.

Constructors

CodeTaskFactory()

Creates the task factory.

Properties

FactoryName

MSBuild engine uses this for logging where the task comes from

TaskType

Gets the type of the generated task.

Methods

CleanupTask(ITask)

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

CreateTask(IBuildEngine)

Create a taskfactory instance which contains the data that needs to be refreshed between task invocations.

GetTaskParameters()

Gets the type information for all task parameters.

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

Initializes the task factory.

Applies to