I am working in a Visual Studio 2008 solution with multiple C# projects and some C++ projects and want to use post-build events to execute some 3rd party vendor command line tools. These post-build events are needed in several projects.
I can hard code the path names and other files needed on the command line, but I really would prefer something more flexible. Perhaps:
$(ToolsDir)\$(PackageBuilder) $(ThirdPartyDllFolder) $(SharedOutputFolder)
When I developed for UNIX and used makefiles to perform builds, I was able to define a variable in a high level makefile and have it inherited by children makefiles. In this way, I could have all output go to a particular place, or look in a particular place for a library, etc.
Is there an equivalent thing that can be done using Visual Studio solutions, such that I could define something like an environment variable and then reference it in a project level post-build event?
EDIT: I am using Windows environment variables right now, but would prefer something that did not require setup outside of just downloading the code and building it.