简体   繁体   中英

Visual studio showing fake errors after build

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.

(错误列表)

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.

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 showing fake errors after build

对我来说,这是从 .net framework 4.5 到 4.8 解决的

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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