Thanks to user7860670 for providing link to this thread - Can I set a solution-wide macro from VS a project property sheet?. This problem indeed may be solved by properties sheets. Actually by using properties sheet in this way you can override any parameter of the sub-project.