如何启用/禁用编译错误在Visual Studio中警告 [英] How to enable/disable compile errors warning in Visual Studio

查看:2240
本文介绍了如何启用/禁用编译错误在Visual Studio中警告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在调试模式下,如果当我们按下F5键启动调试出现在我们的应用程序错误,将出现一个对话框,警告:你的程序有一个错误你想运行您上次修改的程序。?或者这样的事情。

In debug mode, if there is an error in our application when we press F5 to start debugging, a dialog appears with the warning: "Your program has an error. Do you want to run your last modified program?" or something like this.

我想启用或禁用此对话框。

I want to enable or disable this dialog.

我怎样才能做到这一点?

How can I do this?

推荐答案

您可以打开/关闭该提示在Visual Studio设置:

You can turn that prompt on/off in your Visual Studio settings:


  1. 从工具菜单,选择选项

  2. 在弹出的对话框中,依次展开项目和解决方案,并点击。构建并运行。

  3. 在右侧,你会看到标有一个组合框上运行,当发生构建或部署错误。

  1. From the "Tools" menu, select "Options".
  2. In the dialog that appears, expand "Projects and Solutions", and click "Build and Run".
  3. On the right side, you'll see a combo box labeled "On Run, when build or deployment errors occur".


  • 如果您希望禁用的消息框中,选择不要启动或启动老版(这将自动启动旧版本)。

  • 如果您要启用的消息框,选择提示要推出,这将要求您每一次。

   

   

当然,随着人们在评论中所建议的,这意味着你的代码中有某个地方的错误,阻止它编译。你需要使用错误列表来找出这些错误,然后解决这些问题。

Of course, as people have suggested in the comments, this means that your code has errors in it somewhere that are preventing it from compiling. You need to use the "Error List" to figure out what those errors are, and then fix them.

这篇关于如何启用/禁用编译错误在Visual Studio中警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆