Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

vs2012: inherit/reference user defined property sheets?

I have a decent handful of property sheet files (.props), here is a short example:

  • global.props
  • x86.props
  • x64.props
  • app.props
  • lib.props

It's very tedious to assign all of the correct property sheets to the correct configurations. What I'd like to do is create, for example, app_x86.props which simply references global.props, x86.props, app.props, so that I only have to assign one property sheet to each project configuration.

Is there any way to do this kind of referencing of property sheets?

like image 732
MikeNicolella Avatar asked May 25 '13 18:05

MikeNicolella


1 Answers

This is perfectly possible with the UI: go to View->Property Manager, add a new property sheet, then add other property sheets to that sheet (right-click the base sheet, Add new Project Property Sheet, just like for adding sheets to the project). You will see VS indents them to show they are imported into another sheet. The created property sheet will of course also use the Import element as in your answer.

like image 96
stijn Avatar answered Oct 01 '22 13:10

stijn