如何构建调试和发布并仍然获得适当的错误消息?

发布于 2024-08-06 20:03:33 字数 376 浏览 4 评论 0原文

我正在使用 Visual Studio 2008 Team System 2008 Team Edition。

我希望能够构建我的项目并实际上被告知构建中的所有错误。到目前为止我还没有找到方法,所以它一定隐藏得很好。

  • 项目的正常“重建”命令以及解决方案的“重建解决方案”命令仅重建活动配置(调试或发布),而不重建两者。
  • 使用“批量构建”对话框,按照我之前提出的相同问题的答案中的建议问题,不会像我预期的那样在错误窗口中输出任何错误,而是默默地继续批量构建,而不是像我预期的那样停止。我的代码中出现编译错误已有数周之久,但我却没有注意到这一点!

如何让 Visual Studio 构建这两种配置(如果都编译)并输出错误消息(如果其中之一未编译)?

I'm using Visual Studio 2008 Team System 2008 Team Edition.

I want to be able to build my project and actually be told about all errors in the build. So far I have not found a way, so it must be pretty well hidden.

  • The normal "Rebuild" command for a project, as well as the "Rebuild solution" command for a solution, rebuilds only the active configuration (Debug or Release), never both.
  • Using the Batch Build dialog, as recommended in an answer to an earlier question I posed about the same problem, does not output any errors in the Error Window as I would have expected and just silently continues with the batch build instead of stopping as I would have expected. I had a compile error in my code for weeks without noticing because of this!

How do I get Visual Studio to build both configurations (if both compile) AND output error messages (if either one doesn't compile)?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

離殇 2024-08-13 20:03:33

你不能(至少在 VS 2008 中,任何版本都不能)。

You can't (at least not in VS 2008, any edition).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文