Visual Studio 在构建后显示假错误 [英] Visual studio showing fake errors after build

查看:38
本文介绍了Visual Studio 在构建后显示假错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是 Visual Studio 2017.在调试模式下构建 .sln 后,出现错误.但是,当我通过双击错误列表选项卡中的错误访问错误时,错误从页面中消失并且错误计数也减少了.

I'm on Visual Studio 2017. After building the .sln in debug mode, I'm getting errors. However, when I visit the error by double clicking the error from the error list tab, the error disappears from the page and also the bug count reduces.

我不太确定这种行为以及为什么会发生这种情况.有 2k+ 个错误,我不想访问每个页面来消除错误.

I'm not too sure of this behavior and why this happening. There are 2k+ errors and I don't want to visit every page to remove the error.

推荐答案

这种情况已经持续多年(即...与 VS2017 无关).对我来说,这通常是通过关闭 VS 并删除隐藏在项目目录中的 .suo 文件来解决的,但是其他人已经通过多种方法解决了它,这些方法也可以帮助您(上述清理/重建是其中之一)他们).这是另一个 SO 问题/答案,它在一个地方更深入地详细说明了大多数解决方案.

This is has been going on for years (ie...not related to VS2017). For me, this is usually solved by closing VS and deleting the .suo file that is hidden in the project directory, but there are several ways it has been solved by others that may help you as well (the aforementioned clean/rebuild being one of them). Here is another SO question/answer that details more in-depth the majority of the solutions all in 1 place.

Visual Studio 在构建后显示假错误

这篇关于Visual Studio 在构建后显示假错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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