Creating and Deleting Configurations in a Project

Home Page (Projects)OverviewsHow Do I... TopicsNMAKE Reference

A project configuration consists of settings that determine the characteristics of the final output file for a project. When you create a new project configuration for a project, it is based initially on the settings from an existing project configuration that you select. Options you select for the new configuration, such as the platform, may modify those initial settings. The new project configuration always uses the same set of files as the configuration on which it is based.

What do you want to do?

Create a project configuration

Prevent a file from being built in a configuration

Delete a configuration from a project

To create a project configuration

  1. On the Build menu, click Configurations.

  2. In the Configurations box, select the project to which you want to add a configuration, and click Add.

    You can also directly select the configuration on which you want to base the new configuration, for example, Win32 Debug.

  3. In the Add Project Configuration dialog box, type a unique name for the new configuration.

  4. On the Copy Settings From drop-down list, select the configuration from which the new configuration copies its initial settings.

  5. On the Platform drop-down list, select a platform for the new configuration.

    You can select the same platform as the project on which you are basing the new one if you want merely a variation of the existing settings.

  6. Click OK and then Close.

To prevent a file or files from being built in a configuration

  1. On the Project menu, click Settings, and then select the General tab.

  2. In the pane beneath the Settings For drop-down control, select the file or files that you want to exclude from the build.

  3. Select the Exclude File from Build check box.

To delete a configuration from a project

  1. On the Build menu, click Configurations.

  2. In the Projects and Configurations area, expand the project from which you want to delete a configuration.

  3. Select the configuration that you want to remove and click Remove.

  4. Respond Yes to remove the configuration.