繁体   English   中英

Visual Studio 2022 不显示编译时错误

[英]Visual Studio 2022 not showing compile time errors

我是 Visual Studio 的新手,我似乎无法让它捕获编译时错误。

可以看出,它确实捕获了额外空格等样式错误。

我看过帖子Visual Studio not displaying compile time errors in editor ,更具体地说,

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

但它们似乎不起作用。 其他解决方案适用于旧版本的 Visual Studio。

但是,当我构建项目时,它确实在底部(输出窗口)的 window 中显示了错误

有些错误发现了有些错误

我们在开始使用 VS 2022 时遇到了同样的问题。似乎在工具 -> 选项 -> 文本编辑器 -> C# 和 Visual Basic -> 高级第二个选项(在 17.4.1 中,就是这种情况)下有新选项,带有 label “显示编译器错误和警告”,从“打开文档”更改为“整个解决方案”

打败我,为什么默认选择是打开文档。 很多人对此感到害怕,因为编译后,错误 window 中没有错误。是的,它的性能更高,但为什么呢?

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

暂无
暂无

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM