一、VS新建工程后默认值如下:
- 输出目录:
(SolutionDir)(SolutionDir)(SolutionDir)(Platform)$(Configuration) - 中间目录:
(Platform)(Platform)(Platform)(Configuration)\ - 目标文件名:
$(ProjectName) 即项目名称hps_mfc_sandbox_v140
其中
$(SolutionDir)为解决方案目录(绝对路径)
$(Platform)平台x64
$(Configuration)为配置版本Debug
二、我的VS设置
- 输出目录:
$(SolutionDir)bin$(Platform)$(Configuration)
(路径为:I:\workspace\mfc_sandbox\bin\x64\Debug\) - 中间目录:
$(SolutionDir)bintemp$(Platform)$(ProjectName)$(Configuration)
(路径为:I:\workspace\mfc_sandbox\bintemp\x64\Debug)

本文详细介绍了Visual Studio中关于输出目录和中间目录的默认设置及其自定义方式,例如设置输出目录为'SolutionDir'下的'bin'子目录,中间目录为'SolutionDir'下的'bintemp'子目录,结合平台和配置信息,便于管理和组织项目构建产物。
1万+

被折叠的 条评论
为什么被折叠?



