如何构建调试和发布并仍然获得适当的错误消息?
我正在使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你不能(至少在 VS 2008 中,任何版本都不能)。
You can't (at least not in VS 2008, any edition).