【问题标题】:How to build a project in debug rather that release in msvc command line如何在调试中构建项目而不是在 msvc 命令行中发布
【发布时间】:2018-11-30 11:43:53
【问题描述】:

我有一个用于发布构建的 cpp 项目的 makefile 和多个 *.mak 文件。 我想要一个调试版本,以便我可以调试一些 crt 函数。 用于编译 cl 链接器是链接 旗帜对我来说是压倒性的。

【问题讨论】:

    标签: visual-c++ visual-studio-2008 linker visual-studio-debugging cl


    【解决方案1】:

    如何在调试而不是在 msvc 命令行中构建项目

    您可以尝试在 MSBuild 命令行中使用参数/property:Configuration=Debug 构建项目,例如:

    c:\windows\microsoft.net\framework\v4.0.30319\msbuild.exe YourProject.proj /target:rebuild "/property:Configuration=Debug
    

    查看文档MSBuild command-line reference了解更多详情。

    希望这会有所帮助。

    【讨论】:

      猜你喜欢
      • 2011-08-18
      • 2012-01-23
      • 1970-01-01
      • 2010-11-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-12-21
      相关资源
      最近更新 更多