views:

75

answers:

3

Hi, I just installed VS on another PC, but this time, while I am coding, it is not marking syntax errors while I am coding..... I need to press F6 to get the errors.

Normally when for example typing the line below, I get 's' underlined saying that there is a mismatch. Any ideas how I can enable this option?

            string s = 4;
A: 

Have you recently deinstalled ReSharper?

(see responses in the same link for other possibilities).

davek
thanks but none of them solved my problem. Note that this is a clean install on a new PC
mouthpiec
+1  A: 

C# has never been as consistent about finding errors while i type as VB.net has. I always assumed it was just due to the freeform nature of the language, which would also explain why C++ never found errors either til build time.

cHao
+1  A: 

In order to enable background compilation for C#, which checks you code while typing for many types of errors that are usually only reported when you build the project, you will have to install Service Pack 1 for Visual Studio 2008. If you use the offline MSDN, you will also want to install the updated MSDN Library for Visual Studio 2008 SP1, since there were framework changes from .NET 3.5 RTM to .NET 3.5 SP1 (such as the addition of Entity Framework).

Allon Guralnek
solved by installing SP1
mouthpiec