[英]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. 通常,像$(SolutionDir)这样的构建命令宏将对结果进行评估,但是在构建这些宏的复杂字符串时,能够快速评估生成的实际字符串会很好。 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?
除了构建一个将一串宏作为输入并输出评估后的字符串的自定义工具之外,还有其他方法吗?
只需添加一个预构建事件,然后使用“ echo”在“输出”窗口中显示字符串
echo $(SolutionDir)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.