1

Intellisense will still give suggestions, but Visual Studio will not highlight any errors until I click "Start". I can write absolute gibberish and no red squiggles will appear. However, when I do click "Start", the Error List will finally populate and the build will fail. (It will also check errors after I click "ReBuild" or "Clean Solution").

However, when I do edit the errors, the red squiggles will remain. Even when I remove the entire line, a two space long red squiggle will remain. Clicking "Start", "Rebuild", or "Clean Solution" does not make these old error highlights disappear and the Error List does not change. Only closing and restarting VS 2015 Community will clear them. Rebooting the computer did not re-enable the error checking function.

System Details: This is a fresh install of Windows 7 Pro 64bit on a Macbook Pro with Bootcamp. This is the first project I have made since installing VS 2015 Community yesterday. I am writing a Windows Forms app using C#. To the best of my knowledge, it was working fine for a few hours this morning. I have already tried resetting all my settings. I have already tried rebooting and deleting the bin/obj folders in the solution directory.

Has anyone experienced such an issue? Do you think it is an issue with my install, or did my solution get corrupted somehow?

4
  • Interestingly, the project seems to be compiling old code. Even when I click "Rebuild/Clean/Build Solution" it continues to run an old version of code. Furthermore, the Windows Forms Designer has 'forgotten' the references to some variables and methods that it once recognized..
    – Bill
    Aug 31, 2015 at 3:02
  • 1
    Tools -> Options -> Text Editor -> C# -> Advanced -> Show live semantic errors ?
    – Loathing
    Aug 31, 2015 at 3:47
  • Check the file type/extension of the file. Aug 31, 2015 at 5:48
  • Does this answer your question? Visual Studio displaying errors even if projects build Aug 24, 2021 at 16:08

2 Answers 2

0

A few things to try that often fix weird Visual Studio problems:

  1. Restart Visual Studio.
  2. Delete the .suo file. This file should be right beside the .sln file, and is a temp file used for tracking things like which files/tabs you had open in the editor between sessions
  3. Clear out some temp VS cache files.

Another thing you can try is running VS in safe mode to run with all extensions disabled. This may at least hint if the problem is native to VS, or if it's one of your installed extensions that is the problem.

0

Creating a new Project caused the error checking functionality to come back. I didn't even type any new code, I only made a new, blank project and everything started working again.

I have no idea why, but if someone else encounters this issue, make a new Visual Studio project and try re-loading your old one afterwards.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.