[英]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 ,更具体地说,
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.