countunique
countunique

Reputation: 4296

Project settings in "Release" vs. "Debug" mode

In Visual Studio, you can specify different project properties for the Release and Debug modes. However, I usually want them to have the same project properties (i.e., the same includes and dependencies). Is there a way to copy the project properties of the Debug mode to the Release mode without making line-by-line changes?

Upvotes: 3

Views: 2972

Answers (1)

Casey
Casey

Reputation: 10936

Yes. Use the Property manager to add a new property sheet, making any changes you want, and then "Add Existing" to the other mode.

The listed sheets are just links and when a sheet is changed in one place, it's changed in all. The inheritance is hierarchical (probably not a word...) moving from bottom to top with the actual project inherited last and the lowest property sheet the first.

In the property page for the project (right-click on the project in the Solution Explorer → Properties) set every element that is in bold to "Inherit from parent or project defaults", and they will automatically inherit the properties from the next lowest property page in the property manager.

Upvotes: 2

Related Questions