且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何启用/禁用编译错误在Visual Studio中警告

更新时间:2022-04-19 01:17:43

您可以打开/关闭该提示在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".


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

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

    如何启用/禁用编译错误在Visual Studio中警告

   

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

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.