建立和編輯組建組態Creating and editing build configurations

您可以針對個別專案或以方案層面為基礎建立組建組態。Build configurations can be created for individual projects or on a solution-wide basis. 這些組態可讓您精確地控制組建。These configurations will give you precise control over a build.

專案和方案的選項功能表為您提供了一個區域,可用來建立和編輯新的及現有的組態。The options menu for both projects and solutions provide you with an area to create and edit new and existing configurations.

建立專案組建組態Creating a project build configurations

若要建立專案組建組態,請採取下列步驟:To create a project build configuration, take the following steps:

  1. 以滑鼠右鍵按一下專案節點,然後選取 [選項]。Right-click on the project node and select Options.

  2. 在專案選項對話方塊中,選取 [組建] > [組態]:In the Project Options dialog, select Build > Configurations:

    專案選項中的組態管理員

  3. 若要建立新的組態,請選取 [新增]。To create a new configuration, select Add. 或者,您可以複製其中一個現有的組態。Alternatively, you can copy one of the existing configurations.

建立組態之後,您可以使用專案選項中的 [組建] 區段,調整屬性使其適用於您的組態:Once the configuration has been created, you can use the Build section in the Project Options to adapt properties appropriate to your configuration:

設定組建選項

建立方案組建組態Creating a solution build configuration

若要建立方案組建組態,請採取下列步驟:To create a solution build configuration, take the following steps:

  1. 以滑鼠右鍵按一下方案節點,然後選取 [選項]。Right-click on the Solution node and select Options.

  2. 在 [方案選項] 對話方塊中,選取 [組建] > [組態]:In the Solution Options dialog, select Build > Configurations:

    方案選項中的組態管理員

  3. 若要建立新的組態,請選取 [新增]。To create a new configuration, select Add. 或者,您可以複製其中一個現有的組態。Alternatively, you can copy one of the existing configurations.

建立組態之後,您可以使用每個專案選項中的 [組建] 區段,調整屬性使其適用於您的組態:Once the configuration has been created, you can use the Build section in each project's options to adapt properties appropriate to your configuration:

設定組建選項

編輯組建組態Editing a build configuration

若要重新命名組態,請從 [專案選項] 或 [方案選項] 的組態清單中選取組態:To rename a configuration, select it from the Configuration list in the Project or Solution Options:

組態清單

選取 [重新命名] 按鈕。Select the Rename button.

重新命名對話方塊