Microsoft.Build.Framework 命名空间

Microsoft.Build.Framework 命名空间包含定义任务和记录器与 MSBuild 引擎的交互方式的类型。 The Microsoft.Build.Framework namespace contains the types that define how tasks and loggers interact with the MSBuild engine. 有关信息,请参阅 MSBuild For information, see MSBuild.

BuildErrorEventArgs

ErrorRaised 事件提供数据。Provides data for the ErrorRaised event.

BuildEventArgs

AnyEventRaised 事件提供数据。Provides data for the AnyEventRaised event.

BuildEventContext

提供生成事件的上下文位置信息。Provides contextual location information for build events.

BuildFinishedEventArgs

BuildFinished 事件提供数据。Provides data for the BuildFinished event.

BuildMessageEventArgs

MessageRaised 事件提供数据。Provides data for the MessageRaised event.

BuildStartedEventArgs

BuildStarted 事件提供数据。Provides data for the BuildStarted event.

BuildStatusEventArgs

StatusEventRaised 事件提供数据。Provides data for the StatusEventRaised event.

BuildWarningEventArgs

WarningRaised 事件提供数据。Provides data for the WarningRaised event.

CriticalBuildMessageEventArgs

包含重要消息事件的参数。Contains arguments for critical message events. 这些始终具有高重要性。These always have high importance.

CustomBuildEventArgs

CustomEventRaised 事件提供数据。Provides data for the CustomEventRaised event.

ExternalProjectFinishedEventArgs

CustomEventRaised 事件提供数据。Provides data for the CustomEventRaised event.

ExternalProjectStartedEventArgs

CustomEventRaised 事件提供数据。Provides data for the CustomEventRaised event.

LazyFormattedBuildEventArgs

存储表示消息的各个部分的字符串,该消息将延迟格式设置直至需要显示它。Stores strings for parts of a message delaying the formatting until it needs to be shown.

LoadInSeparateAppDomainAttribute

定义一个元数据特性,MSBuild 使用此特性来标识必须在其自己的应用程序域中执行的任务。Defines the metadata attribute that MSBuild uses to identify tasks that must be executed in their own application domains.

LoggerException

使记录器可以通过显式方式强制生成停止。Allows a logger to force the build to stop in an explicit way.

OutputAttribute

定义任务作者用来标识从任务输出数据的任务属性的元数据特性。Defines the metadata attribute that task authors use to identify task properties that output data from the task.

ProjectFinishedEventArgs

ProjectFinished 事件提供数据。Provides data for the ProjectFinished event.

ProjectStartedEventArgs

ProjectStarted 事件提供数据。Provides data for the ProjectStarted event.

RequiredAttribute

定义任务作者用来标识所需的任务属性的元数据特性。Defines the metadata attribute that task authors use to identify required task properties. 当运行任务时,具有此特性的任务属性必须具有已设置好的值。Task properties with this attribute must have a set value when the task is run.

RequiredRuntimeAttribute

定义任务作者用于标识任务是否求特定版本的 CLR 运行时的元数据特性。Defines the metadata attribute that task authors use to identify whether the task requires a specific version of the CLR runtime.

RunInMTAAttribute

此特性用于将一个任务类标记为不显式要求在 COM 的 STA 中运行。This attribute is used to mark a task class as explicitly not being required to run in the STA for COM.

RunInSTAAttribute

此特性用于将一个任务类标记为必须在 COM 的单线程单元中运行。This attribute is used to mark a task class as being required to run in a Single Threaded Apartment for COM.

TargetFinishedEventArgs

初始化 TargetFinishedEventArgs 类的新实例。Initializes a new instance of the TargetFinishedEventArgs class.

TargetStartedEventArgs

TargetStarted 事件提供数据。Provides data for the TargetStarted event.

TaskCommandLineEventArgs

MessageRaised 事件提供数据。Provides data for the MessageRaised event.

TaskFinishedEventArgs

TaskFinished 事件提供数据。Provides data for the TaskFinished event.

TaskPropertyInfo

将来自现用任务的参数信息表示为强类型类。Represents the parameter information from the using task as a strongly typed class.

TaskStartedEventArgs

TaskStarted 事件提供数据。Provides data for the TaskStarted event.

结构

BuildEngineResult

包含生成结果和目标输出。Contains the result of the build and the target outputs.

接口

IBuildEngine

提供了一种使任务作者可以使用 MSBuild 引擎的功能子集的方法。Provides a way for task authors to use a subset of the functionality of the MSBuild engine.

IBuildEngine2

提供了一种使任务作者可以使用 MSBuild 引擎的功能子集的方法。Provides a way for task authors to use a subset of the functionality of the MSBuild engine.

IBuildEngine3

此接口将扩展 IBuildEngine,提供一个允许并行生成项目文件的方法。This interface extends IBuildEngine to provide a method allowing building project files in parallel.

IBuildEngine4

此接口扩展 IBuildEngine 以提供结构允许任务可以共享在任务调用之间的数据。This interface extends IBuildEngine to provide a mechanism allowing tasks to share data between task invocations.

ICancelableTask

可以取消的任务的接口。Interface for tasks which can be cancelled.

IEventRedirector

将生成事件转发到其他记录器。Forwards build events to other loggers.

IEventSource

定义由生成引擎引发的事件。Defines the events raised by the build engine. 记录器接收在它们的 Initialize(IEventSource) 方法中实现此接口的对象,然后使用该对象订阅它们希望接收的事件。Loggers receive an object implementing this interface in their Initialize(IEventSource) method and use it to subscribe to the events they are interested in receiving.

IForwardingLogger

扩展 ILogger 接口以提供用于将事件转发到在不同进程中运行的记录器的属性。Extends the ILogger interface to provide properties to forward events to a logger running in a different process. 它还可以用于创建筛选记录器。It can also be used create filtering loggers.

IGeneratedTask

ITaskFactory 实例生成的任务实现的接口。An interface implemented by tasks that are generated by ITaskFactory instances.

ILogger

定义 MSBuild 记录器,该记录器订阅生成系统事件。Defines an MSBuild logger, which subscribes to build system events.

INodeLogger

在生成系统中定义一个“支持并行的记录器”。Defines a "parallel aware logger" in the build system.

ITask

定义一个任务,即 MSBuild 用来执行生成操作的可执行代码单元。Defines a task, which is a unit of executable code used by MSBuild to perform build operations.

ITaskFactory

任务工厂实例应实现的接口。Interface that a task factory Instance should implement.

ITaskFactory2

描述并展任务工厂实例应实现的 ITaskFactory 接口。Describes and extended ITaskFactory interface that a task factory instance should implement.

ITaskHost

将集成开发环境 (IDE) 中的宿主对象传递给各个任务。Passes host objects from an integrated development environment (IDE) to individual tasks.

ITaskItem

定义可以由任务使用和发出的 MSBuild 项。Defines an MSBuild item that can be consumed and emitted by tasks.

ITaskItem2

此接口为 ITaskItem 接口添加转义支持。This interface adds escaping support to the ITaskItem interface.

枚举

LoggerVerbosity

指定 Logger 的可用详细级别。Specifies the available verbosity levels of a Logger.

MessageImportance

指定用于定义生成消息的重要性的常数。Specifies constants that define the importance of a build message.

RegisteredTaskObjectLifetime

定义一个注册的任务对象的生存期。Defines the lifetime of a registered task object.

委托

AnyEventHandler

表示将处理生成过程中的 AnyEventRaised 事件的方法。Represents the method that will handle the AnyEventRaised event of a build.

BuildErrorEventHandler

表示将处理生成过程中的 ErrorRaised 事件的方法。Represents the method that will handle the ErrorRaised event of a build.

BuildFinishedEventHandler

表示将处理生成过程中的 BuildFinished 事件的方法。Represents the method that will handle the BuildFinished event of a build.

BuildMessageEventHandler

表示将处理生成过程中的 MessageRaised 事件的方法。Represents the method that will handle the MessageRaised event of a build.

BuildStartedEventHandler

表示将处理生成过程中的 BuildStarted 事件的方法。Represents the method that will handle the BuildStarted event of a build.

BuildStatusEventHandler

表示将处理生成过程中的 StatusEventRaised 事件的方法。Represents the method that will handle the StatusEventRaised event of a build.

BuildWarningEventHandler

表示将处理生成过程中的 WarningRaised 事件的方法。Represents the method that will handle the WarningRaised event of a build.

CustomBuildEventHandler

表示将处理生成过程中的 CustomEventRaised 事件的方法。Represents the method that will handle the CustomEventRaised event of a build.

ProjectFinishedEventHandler

表示将处理生成过程中的 ProjectFinished 事件的方法。Represents the method that will handle the ProjectFinished event of a build.

ProjectStartedEventHandler

表示将处理生成过程中的 ProjectStarted 事件的方法。Represents the method that will handle the ProjectStarted event of a build.

TargetFinishedEventHandler

表示将处理生成过程中的 TargetFinished 事件的方法。Represents the method that will handle the TargetFinished event of a build.

TargetStartedEventHandler

表示将处理生成过程中的 TargetStarted 事件的方法。Represents the method that will handle the TargetStarted event of a build.

TaskFinishedEventHandler

表示将处理生成过程中的 TaskFinished 事件的方法。Represents the method that will handle the TaskFinished event of a build.

TaskStartedEventHandler

表示将处理生成过程中的 TaskStarted 事件的方法。Represents the method that will handle the TaskStarted event of a build.