It's more often obvious what a build command macro like $(SolutionDir) will evaluate to, but when building complex strings of these macros, it would be nice to be able to quickly evaluate the resulting real string. Is there any way of doing this except building a custom tool that takes a string of macros as input and outputs the evaluated string?
+1
A:
Just add a pre-build event and use "echo" to display the string in the Output window
echo $(SolutionDir)
Hans Passant
2010-08-09 12:45:17
Nice, but is there any way of cancelling the build after doing that?
ProfK
2010-08-09 16:01:35
Yes, use Build + Cancel.
Hans Passant
2010-08-09 16:11:08