Microsoft.Build.Evaluation Namespace

包含 MSBuild 对象模型用来计算项目的类型。 Contains types that the MSBuild object model uses to evaluate projects. 每个项目都与一个或多个项目根相关联。 Each project is associated with one or more project roots. 有关信息,请参阅 MSBuild For information, see MSBuild.

Project

表示具有设计时语义的项目。Represents a project with design time semantics. 此类可加载项目文件、编辑项和属性,并可生成项目。This class can load project files, edit items and properties and build projects.

ProjectChangedEventArgs

ProjectCollectionChanged 事件的事件参数。Event arguments for the ProjectCollectionChanged event.

ProjectCollection

封装一组相关项目及其工具集、默认的全局属性集以及生成这些项目应使用的记录器。Encapsulates a set of related projects, their toolsets, a default set of global properties, and the loggers that should be used to build them. 此类的一个全局版本将用作默认的项目集合。A global version of this class acts as the default project collection.

ProjectCollection.ProjectAddedToProjectCollectionEventArgs

提供有关哪些项目添加至 ProjectCollection 项目集合的信息。Provides information about what project just got added to the ProjectCollection project collection.

ProjectCollectionChangedEventArgs

ProjectCollectionChanged 事件的事件参数。Event arguments for the ProjectCollectionChanged event.

ProjectItem

表示计算的设计时项目项。Represents an evaluated design-time project item.

ProjectItemDefinition

表示一个特定项类型的计算的项定义。Represents an evaluated item definition for a particular item-type.

ProjectMetadata

表示计算的设计时元数据。Represents evaluated design-time metadata.

ProjectProperty

表示计算的设计时属性。Represents an evaluated design-time property.

ProjectXmlChangedEventArgs

ProjectCollectionChanged 事件的事件参数。Event arguments for the ProjectCollectionChanged event.

SubToolset

表示与特殊的子工具集对应的一组属性的聚合。Represents an aggregation of a set of properties that correspond to a particular sub toolset.

Toolset

表示工具版本(例如“2.0”)、Represent an aggregation of a tools version (eg. “2.0”)、工具路径以及可选的关联属性集的聚合。"2.0"), tools path, and optional set of associated properties.

结构

ResolvedImport

在计算的项目中封装导入的项目的 ProjectImportElement 和 ProjectRootElement 之间的导入关系。Encapsulates an import relationship in an evaluated project between a ProjectImportElement and the ProjectRootElement of the imported project.

枚举

ProjectCollectionChangedState

属性或其他可变状态与 ProjectCollection 项目集合相关。Properties or other mutable state associated with a ProjectCollection project collection.

ProjectLoadSettings

用于控制项目加载的标志。Flags for controlling the project load.

ToolsetDefinitionLocations

用于控制工具集初始化的标志。Flags for controlling the toolset initialization.

委托

ProjectCollection.ProjectAddedEventHandler

接收已添加到项目集合的项目的处理程序。Handler to receive which project got added to the project collection.