Microsoft.Build.Execution 命名空间

包含 MSBuild 对象模型用来生成项目的类型。 Contains types that the MSBuild object model uses to build projects. 有关信息,请参阅 MSBuild For information, see MSBuild.

BuildManager

此类是用于执行生成的公共入口点。This class is the public entry point for executing builds.

BuildParameters

此类表示要开始生成必须指定的所有设置。This class represents all of the settings which must be specified to start a build.

BuildRequestData

封装提交生成请求所需的所有数据。Encapsulates all of the data needed to submit a build request.

BuildResult

表示已针对某个特定配置产生结果的所有目标的当前结果集。Represents the current result set for all of the targets that have produced results for a particular configuration.

BuildSubmission

表示已提交给生成管理器进行处理的生成请求。Represents a build request that has been submitted to the build manager for processing. 可以使用此类的方法执行同步或异步生成请求,并在请求完成后访问结果。The methods of this class may be used to execute synchronous or asynchronous build requests and to provide access to the results upon completion.

HostServices

可对从生成到宿主的访问进行调停的宿主服务的实现。Implementation of a host service that mediates access from the build to the host.

OutOfProcNode

此类表示一个进程外生成节点的实现。This class represents an implementation of an out-of-proc build node. 此类已被弃用,而且没有替代项。This class is deprecated and has no alternative.

ProjectInstance

表示一个项目实例。Represents a project instance.

ProjectItemDefinitionInstance

表示一个特定项类型的计算的项定义(剥离了对项目源代码的所有引用)。Represents an evaluated item definition for a particular item type, divested of all references to project source code.

ProjectItemGroupTaskInstance

对某个目标下的未计算项组进行包装。Wraps an unevaluated itemgroup under a target. 不可变:Immutable.

ProjectItemGroupTaskItemInstance

对某个目标中的项组下的未计算项进行包装。Wraps an unevaluated item under an itemgroup in a target. 不可变:Immutable.

ProjectItemGroupTaskMetadataInstance

对某个目标的项组中的某个项下的未计算元数据进行包装。Wraps an unevaluated metadata under an item in an item group in a target. 不可变:Immutable.

ProjectItemInstance

包装计算项以进行生成。Wraps an evaluated item for build purposes.

ProjectMetadataInstance

对计算元数据进行包装以进行生成。Wraps an evaluated metadata for build purposes.

ProjectOnErrorInstance

包装 OnError 元素 (MSBuild)Wraps an OnError Element (MSBuild).

ProjectPropertyGroupTaskInstance

对某个目标下的未计算属性组进行包装。Wraps an unevaluated propertygroup under a target. 不可变:Immutable.

ProjectPropertyGroupTaskPropertyInstance

对某个目标中的属性组的未计算属性进行包装。Wraps an unevaluated property of a property group in a target. 不可变:Immutable.

ProjectPropertyInstance

对计算属性进行包装以进行生成。Wraps an evaluated property for build purposes. 可通过 ProjectInstance 对象上的方法添加和移除这些属性的实例。Instances of these properties are added and removed via methods on the ProjectInstance object.

ProjectTargetInstance

包装 Target 元素 (MSBuild)Wraps a Target Element (MSBuild).

ProjectTargetInstanceChild

ProjectTaskInstanceProjectPropertyGroupTaskInstanceProjectItemGroupTaskInstance 类抽象化。Abstracts the ProjectTaskInstance, ProjectPropertyGroupTaskInstance and ProjectItemGroupTaskInstance classes. 通过此操作,可在目标子级的单个集合中使用这些类型。This allows these types to be used in a single collection of target children.

ProjectTaskInstance

包装 Task 元素 (MSBuild)Wraps a Task Element (MSBuild).

ProjectTaskInstanceChild

将 TaskOutputItem 和 TaskOutputProperty 类的基类抽象化。Abstracts the base class for the TaskOutputItem and TaskOutputProperty classes. 通过此操作,可在单个集合中使用这些类。This allows them to be used in a single collection.

ProjectTaskOutputItemInstance

Task 元素 (MSBuild) 的输出项元素进行包装。Wraps an output item element of a Task Element (MSBuild).

ProjectTaskOutputPropertyInstance

表示 Task 元素 (MSBuild) 的输出属性元素。Represents an output property element of a Task Element (MSBuild).

TargetResult

表示用于生成单个目标的结果代码和整个生成结果。Represents both the result code for building a single target and the overall build result.

接口

ITargetResult

表示特定目标的结果的接口。An interface representing the results for a specific target.

枚举

BuildRequestDataFlags

用于提供对生成请求的附加控制的标志。Flags providing additional control over the build request.

BuildResultCode

用于指示一个目标或生成请求的生成结果的枚举数据。Enumerated data indicating the build result of a target or a build request.

NodeAffinity

用于确定生成项目的位置的枚举数据类型。An enumerated data type that determines where projects are built.

NodeEngineShutdownReason

关闭某个节点的原因。Reasons for a node to shutdown.

ProjectInstanceSettings

包含控制项目实例创建的设置。Contains settings for controlling project instance creation.

TargetResultCode

给定目标的结果代码。The result code for a given target.

委托

BuildSubmissionCompleteCallback

用于在生成完成时接收通知的回调函数。A callback function that receives notification when a build completes.