Megosztás a következőn keresztül:


How to: Inherit Project Settings from Property Sheets

This topic describes how to apply project settings that are defined in property sheets, to your C++ projects. You can either use the Property Manager or set the Inherited Project Property Sheets property to specify that your Visual C++ project or project property sheet will inherit its project settings from another property sheet.

To apply project settings that are defined in property sheets using the Property Manager

  1. Open your project in the Visual Studio IDE.

  2. Select Property Manager from the View menu.

  3. In Property Manager, right-click the project, configuration, or user-defined property sheet that you want to apply project settings.

    Note

    Default project property sheets cannot inherit project settings from user-defined property sheets.

  4. Select Add Existing Property Sheet from the context menu.

    When you select Add Existing Property Sheet, the Add Existing Property Sheet dialog box appears. This dialog box helps you locate and specify which property sheet you want to apply to your project, configuration, or user-defined property sheet.

To apply project settings that are defined in property sheets using the Inherited Project Property Sheets property

  1. Open your project in the Visual Studio IDE.

  2. In Solution Explorer, right-click the node for the project or the property sheet that will inherit the project configuration.

  3. On the shortcut menu, click Properties. The property pages for your project will appear.

  4. Use the Configuration control to specify which project configuration to apply the project settings.

  5. In the Inherited Project Property Sheets field of the General property page, enter the path to the property sheet that contains the settings you want to inherit.

  6. Click Apply.

    Note

    When you click Apply, the new settings will automatically propagate to all project files and property sheets that inherit from the property sheet that you modified.

See Also

Tasks

How to: Add New Property Sheets to C++ Projects

How to: Edit Project Property Sheets

Concepts

Property Sheets (C+)

Reference

General Property Page (Project)

Property Manager