Is there any way to define a global variable for a solution that is available for any project file or project properties file included in the solution?
One variable is enough if it can determine the path for the property sheet, which each project can include.
This is desirable for a solution. An environment variable would be fine, although less desirable.
** (visual studio 2010)
Repeating this, I don’t see how to set the user-defined $ (xxx), which can be changed in the project - yes, you can in the properties sheet, but in the project I have a link to $ (ProjectDir) -
The problem is that I want to define $ (tree of projects root) that any project that references a specific poject can access, and the root will refer to this project.
An alternative would be if the property sheet could have access to its own path and determine the root of the project collection (tree of related projects with shared resources) relative to this.
It seems that every building with a large VS system has the same problem.
source
share