Errors/Warnings show up on "Error List" but then disappear for website project

David picture David · Apr 14, 2016 · Viewed 7.9k times · Source

BACKGROUND

I have inherited a solution with multiple projects. One of the projects is a website project... or at least I'm pretty sure that's what this icon means (It looks pretty different in VS 2010 vs 2013, so I'm showing both: VS 2013 on the left, VS 2010 on the right):

project icon enter image description here

PROBLEM

When I rebuild the website project, there are 8 warnings that are generated. These correctly show up in the Error List, but only for a moment.

Warnings show up for a second or two while build is running

Once the build process finishes, they disappear.

Warnings disappear as soon as build is complete

There are a few things to note:

  1. There are no filters set and I cannot toggle any of the message types because it says there are 0 of each.
  2. Even though the errors have disappeared from my Error List, they do still show up in the output section

    Output window

  3. Warnings and errors from other projects show up in the error list without any of this weirdness
  4. This is a website project, so the property pages are dramatically different than the ones that I'm familiar with.

    property pages

  5. I've observed the same behavior with errors

I've tried different versions of VS and they both do the same thing. I've tried deleting my .suo file. I've played around with all the settings I can find that look at all relevant but nothing changes this behavior.

What am I missing?

Answer

Ben Hayward picture Ben Hayward · Jan 10, 2017

I had this problem this morning. After a few minutes of fiddling around, I managed to correct it by switching the "Show issues generated" combo box from "Build + IntelliSense" to "Build Only".

Where to find the combo box to fix the error[1]

I appreciate this quite a subjective answer, and it may be that this solution doesn't work for you, but I suspect it may help to steer you on the right direction!

FYI, my symptoms were: The error list would show for 1-2 seconds after having built or pressed "Start", and then disappear showing 0 errors