Microsoft.Build.Construction 命名空間

包含型別,由 MSBuild 物件模型搭配未評估的值用來建構專案根目錄。 Contains types that the MSBuild object model uses to construct project roots with unevaluated values. 每個專案根目錄對應至專案或目標檔案。 Each project root corresponds to a project or targets file. 如需相關資訊,請參閱 MSBuild For information, see MSBuild.

類別

ElementLocation

檔案中 XML 節點的位置。The location of an XML node in a file. 透過 MSBuild 應用程式開發介面對專案 XML 進行的任何編輯都會使該 XML 中的位置失效,直到重新載入 XML 為止。Any editing of the project XML through the MSBuild API's will invalidate locations in that XML until the XML is reloaded.

ProjectChooseElement

ProjectChooseElement 代表 MSBuild 專案中的 Choose 元素。ProjectChooseElement represents the Choose element in the MSBuild project. 目前不允許使用 Condition。Currently it does not allow a Condition.

ProjectConfigurationInSolution

此類別代表解決方案組態中專案組態的項目。This class represents an entry for a project configuration in a solution configuration.

ProjectElement

MSBuild 建構物件模型項目的抽象基底類別。Abstract base class for MSBuild construction object model elements.

ProjectElementContainer

適用於專案元素的容器A container for project elements

ProjectExtensionsElement

ProjectExtensionsElement 代表 MSBuild 專案中的 ProjectExtensions 元素。ProjectExtensionsElement represents the ProjectExtensions element in the MSBuild project. ProjectExtensions 可以包含任意 XML 內容。ProjectExtensions can contain arbitrary XML content. ProjectExtensions 元素已過時,而且僅針對回溯相容性提供。The ProjectExtensions element is deprecated and provided only for backward compatibility. 請改為使用屬性。Use a property instead. 屬性也可以包含 XML 內容。Properties can also contain XML content.

ProjectImportElement

初始化 ProjectImportElement 執行個體。Initializes a ProjectImportElement instance.

ProjectImportGroupElement

ProjectImportGroupElement 代表 MSBuild 專案中的 ImportGroup 元素。ProjectImportGroupElement represents the ImportGroup element in the MSBuild project.

ProjectInSolution
ProjectItemDefinitionElement

ProjectItemDefinitionElement 類別代表 MSBuild 專案中的 Item Definition 元素。ProjectItemDefinitionElement class represents the Item Definition element in the MSBuild project.

ProjectItemDefinitionGroupElement

ProjectItemDefinitionGroupElement 代表 MSBuild 專案中的 ItemGroup 元素。ProjectItemDefinitionGroupElement represents the ItemGroup element in the MSBuild project.

ProjectItemElement

ProjectItemElement 類別代表 MSBuild 專案中的 Item 元素。ProjectItemElement class represents the Item element in the MSBuild project.

ProjectItemGroupElement

ProjectItemGroupElement 代表 MSBuild 專案中的 ItemGroup 元素。ProjectItemGroupElement represents the ItemGroup element in the MSBuild project.

ProjectMetadataElement

ProjectMetadataElement 類別代表 MSBuild 專案中的 Metadata 元素。ProjectMetadataElement class represents a Metadata element in the MSBuild project.

ProjectOnErrorElement

ProjectUsingTaskElement 代表 MSBuild 專案中的 Import 元素。ProjectUsingTaskElement represents the Import element in the MSBuild project.

ProjectOtherwiseElement

ProjectOtherwiseElement 代表 MSBuild 專案中的 Otherwise 元素。ProjectOtherwiseElement represents the Otherwise element in the MSBuild project.

ProjectOutputElement

ProjectOutputElement 代表 MSBuild 專案中的 Output 元素。ProjectOutputElement represents the Output element in the MSBuild project.

ProjectPropertyElement

ProjectPropertyElement 類別代表 MSBuild 專案中的 Property 元素。ProjectPropertyElement class represents the Property element in the MSBuild project.

ProjectPropertyGroupElement

ProjectPropertyGroupElement 代表 MSBuild 專案中的 PropertyGroup 元素。ProjectPropertyGroupElement represents the PropertyGroup element in the MSBuild project.

ProjectRootElement

ProjectRootElement 類別代表 MSBuild 專案、MSBuild 目標檔案,或任何符合 MSBuild 專案檔案結構描述的其他檔案。ProjectRootElement class represents an MSBuild project, an MSBuild targets file or any other file that conforms to MSBuild project file schema. 這個類別與其相關類別都允許讀取和寫入完整的 MSBuild 專案或目標檔案。This class and its related classes allow a complete MSBuild project or targets file to be read and written. 目前無法透過此模型編輯註解和空白字元。Comments and whitespace cannot be edited through this model at present.

每個專案根項目只會與一個 ProjectCollection 建立關聯。Each project root element is associated with exactly one ProjectCollection. 這可讓該專案集合的擁有者控制其存留期,而不會因為透過其他專案集合進行的編輯而感到驚訝。This allows the owner of that project collection to control its lifetime and not be surprised by edits via another project collection.

ProjectSdkElement

ProjectSdkElement 代表 MSBuild 專案中的 Sdk 元素。ProjectSdkElement represents the Sdk element within the MSBuild project.

ProjectTargetElement

ProjectTargetElement 表示 MSBuild 專案中的目標元素。ProjectTargetElement represents the Target element in the MSBuild project.

ProjectTaskElement

ProjectTaskElement 表示 MSBuild 專案中的 Task 元素。ProjectTaskElement represents the Task element in the MSBuild project.

ProjectUsingTaskBodyElement

ProjectUsingTaskBodyElement 類別代表 MSBuild 專案中 Using Task 元素底下的 Task 元素。ProjectUsingTaskBodyElement class represents the Task element under the using task element in the MSBuild project.

ProjectUsingTaskElement

ProjectUsingTaskElement 代表 MSBuild 專案中的 Import 元素。ProjectUsingTaskElement represents the Import element in the MSBuild project.

ProjectUsingTaskParameterElement

UsingTaskParameterElement 類別代表 MSBuild 專案中的 Parameter 元素。UsingTaskParameterElement class represents the Parameter element in the MSBuild project.

ProjectWhenElement

ProjectWhenElement 代表 MSBuild 專案中的 When 元素。ProjectWhenElement represents the When element in the MSBuild project.

SolutionConfigurationInSolution

這代表適用於解決方案設定的項目This represents an entry for a solution configuration

SolutionFile
UsingTaskParameterGroupElement

UsingTaskParameterGroupElement 代表使用工作下的 ParameterGroup。UsingTaskParameterGroupElement represents a ParameterGroup under the using task.

列舉

ImplicitImportLocation

表示隱含匯入的位置。Represents the location of an implicit import.

SolutionProjectType