Visual Studio not displaying compile time errors in editor

visual-studio, visual-studio-2008

Solution

You need to turn on the underline errors in the editor and show live semantic errors options in Visual Studio.

These options can be found here:

`Tools > Options > Text Editor > C# > Advanced > Editor Help`

Edit: You will need to install SP1 for this functionality to work.

Problem

For example, when I write: ``` string x = "turtle"; x.Go(); ``` There is no red squiggly line detecting the absence of the Go() method on String. Only when I compile does the error get detected. I've just upgraded to Windows 7, I have Visual Studio 2008. In my old environment the errors were detected before the actual compile. Is there a setting that I am missing? EDIT: "Tools -> Options -> Text Editor -> C# -> Underline errors in the editor" is checked. I dont have the "Live Semantic" option. Maybe I need to go to SP1?

Original source