Udostępnij za pośrednictwem


XamlTaskFactory Class

Definition

Caution

The XamlTaskFactory 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.

The task factory provider for XAML tasks.

public ref class XamlTaskFactory : Microsoft::Build::Framework::ITaskFactory
public ref class XamlTaskFactory sealed : Microsoft::Build::Framework::ITaskFactory
public class XamlTaskFactory : Microsoft.Build.Framework.ITaskFactory
[System.Obsolete("The XamlTaskFactory 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 XamlTaskFactory : Microsoft.Build.Framework.ITaskFactory
type XamlTaskFactory = class
    interface ITaskFactory
[<System.Obsolete("The XamlTaskFactory 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 XamlTaskFactory = class
    interface ITaskFactory
Public Class XamlTaskFactory
Implements ITaskFactory
Public NotInheritable Class XamlTaskFactory
Implements ITaskFactory
Inheritance
XamlTaskFactory
Attributes
Implements

Remarks

Xaml is not supported on .NET Core so this 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

XamlTaskFactory()

Creates a task factory for XAML tasks.

Properties

FactoryName

The name of this factory. This factory name will be used in error messages. For example Task "Mytask" failed to load from "FactoryName".

TaskElementContents

The contents of the UsingTask body.

TaskName

The name of the task pulled from the XAML.

TaskNamespace

The namespace of the task pulled from the XAML.

TaskType

The task type object.

Methods

CleanupTask(ITask)

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

CreateTask(IBuildEngine)

Create an instance of the task to be used.

GetTaskParameters()

Get a list of parameters for the task.

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

MSBuild engine will call this to initialize the factory. This should initialize the factory enough so that the factory can be asked whether or not task names can be created by the factory.

Applies to