简体   繁体   English

Visual Studio 2022 不显示编译时错误

[英]Visual Studio 2022 not showing compile time errors

I am new to Visual Studio and I can't seem to make it catch compile-time errors.我是 Visual Studio 的新手,我似乎无法让它捕获编译时错误。

As can be seen, it does catch the style errors like extra spaces.可以看出,它确实捕获了额外空格等样式错误。

I have seen the post Visual Studio not displaying compile time errors in editor , more specifically,我看过帖子Visual Studio not displaying compile time errors in editor ,更具体地说,

  1. https://stackoverflow.com/a/63454289/2525417 https://stackoverflow.com/a/63454289/2525417
  2. https://stackoverflow.com/a/40338353/2525417 https://stackoverflow.com/a/40338353/2525417

But they don't seem to work.但它们似乎不起作用。 Other solutions are for older versions of Visual Studio.其他解决方案适用于旧版本的 Visual Studio。

However, when I build the project it does show the errors in the window at the bottom (output window)但是,当我构建项目时,它确实在底部(输出窗口)的 window 中显示了错误

有些错误发现了有些错误

We had encountered same trouble when started to use VS 2022. Seems that there new option under Tools -> Options -> Text Editor -> C# and Visual Basic -> Advanced Second option (in 17.4.1, that's the case), with label 'Show compiler errors and warnings', change to 'Entire Solution' from 'Open Document'我们在开始使用 VS 2022 时遇到了同样的问题。似乎在工具 -> 选项 -> 文本编辑器 -> C# 和 Visual Basic -> 高级第二个选项(在 17.4.1 中,就是这种情况)下有新选项,带有 label “显示编译器错误和警告”,从“打开文档”更改为“整个解决方案”

Beat me up, why default choice is put to Open Document.打败我,为什么默认选择是打开文档。 Scares a lot of peoples on that since after compilation, no errors in errors window. Yes it is more performing, but why?很多人对此感到害怕,因为编译后,错误 window 中没有错误。是的,它的性能更高,但为什么呢?

Another similar post - Make Visual Studio to show all compile errors but that one speaks on Visual Studio 2015另一篇类似的文章 - Make Visual Studio to show all compile errors but that one speaks on Visual Studio 2015

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Visual Studio 2022 构建失败 - 但未显示任何错误 - Visual Studio 2022 build failed - but showing no errors 在 Visual Studio 2022 中未显示 git 信息 Codelens - Not showing git info Codelens in visual studio 2022 Visual Studio for Mac编译错误 - Visual Studio For Mac Compile Errors Visual Studio 2022 - 代码分析构建错误未失败构建 - Visual Studio 2022 - Code Analysis Build errors not failing build Visual Studio 2022 - 错误和警告 - 无法更改警告级别 - Visual Studio 2022 - Errors and warnings - can't change Warning level 在 Visual Studio 2022 中恢复“存在构建错误”对话框 - Bring back the 'There were build errors' dialog in visual studio 2022 如何在Visual Studio 2008/2010中捕获和保存我的解决方案项目的编译时间和运行时错误 - How to catch and save compile time and run time errors of my solution project in Visual Studio 2008/2010 Visual Studio 2022 未在鼠标悬停时显示参数 XML 文档工具提示 - Visual Studio 2022 not showing parameter XML docs tooltips on mouse over Visual Studio 2022 17.3.6 Xaml Designer 未针对 UNO 平台显示 - Visual Studio 2022 17.3.6 Xaml Designer not showing up for UNO platform C# Visual Studio Microsoft 2022 BindingNavigator 未显示 - C# Visual Studio Microsoft 2022 BindingNavigator not showing
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM