How can I evaluate VS build command macros?
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?
Just add a pre-build event and use "echo" to display the string in the Output window
echo $(SolutionDir)
精彩评论