VS中宏变量的值

VS中配置常用的宏变量

  1. $(DevEnvDir):VS的安装路径,如:C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE\
  2. $(configuration):对应当前 Debug/Release
  3. $(OutDir):输出目录,其值等于 General--> Output Directory 的值,末尾带有反斜杠 '\'
  4. $(ProjectName):对应当前项目的名称
  5. $(TargetExt):编译的程序类型(dll/exe/lib),其值等于:General--> Configuration Type.
  6. $(Platform): 表示当前的平台是 x64, x86, ARM 等
  7. $(ProjectDir):当前项目.vcxproj 所在的路径,末尾带有反斜杠 '\'
  8. $(SolutionDir): 解决方案.sln 所在的路径,末尾带有反斜杠 '\'
posted @ 2024-09-05 15:49  Jeffxue  阅读(140)  评论(0)    收藏  举报