For example, we have three project configurations: Dev_Debug, Dev_Release, Formal_Release.
Every one of our projects/products has these configurations. Is there a way to use $(Configuration) within code so that I can then make slight code changes based on the build type?
#if $(Configuration) == "Dev_Debug"
build_type = 'B';
#elseif $(Configuration) == "Dev_Release"
build_type = 'D';
#elseif $(Configuration) == "Formal_Release"
build_type = 'R';
I know the above method won't work, it's just an example of what I'd like to achieve, the exclusion/inclusion of code sections.
There seems to be a similar application here http://rowley.zendesk.com/forums/56662/entries/111211-get-the-build-date-and-time-from-within-my-program but I can't quite figure out how to use the $(Configuration) macro using the above sort of method.
Please sign in to leave a comment.