Switch off/on Visual Studio 2008 Background Compilation


A new feature in the Visual Studio 2008 service pack 1, is background compilation of code to check for errors as it’s written. This facility has existed in Visual Basic for some time now, though I doubt it was ever this fast. What you get in the IDE is a red squiggle (similar to a spell check error) notifying the programmer a mistake is made. In this example I am mistakenly trying to assign a string value to an integer.

ErrorMessage

This type of error checking is all-over-the-place and saves one significant amounts of time, principally because errors are corrected sooner, meaning one doesn’t compile a project and then find loads of errors. I have a huge project, that I feel is being slowed down by this, and need to check whether the background compilation is affecting "snappiness" of the IDE.

To do this (In Visual Studio) go to Tools and then Options.

In the Options dialog select the Text Editor node, then C# and go the the Advanced node. Remove the check in "Show live semantic errors" to disable background compilation, or conversely check it to enable the feature.

SemanticErrors

I would be interested to know if other users are experiencing a sluggish IDE – especially in the larger projects. It therefore "appears" that for larger projects, the time you save in fixing silly errors, is lost in IDE speed – disproportionate of course – but further testing is required.

8 thoughts on “Switch off/on Visual Studio 2008 Background Compilation

  1. Pingback: Code Contracts forthcoming in .NET 4.0 « Ira Lukhezo’s blog

  2. I am running Visual Studio 2008 professional ver. 9.021022.8 RTM. My version is not background compiling, and I do not have a “show live semantic errors” option in the text editor -> C# -> advanced
    options page. Any idea why not?

  3. Pingback: Writing better code « Ira Lukhezo’s blog

  4. It is still slow even i have disable all the mentioned setting. Is there a way to uninstall or remove this feature. I think i use notepad is better than using Visual Studio 2008 now.

  5. Pingback: Visual Studio 2010 Trucs et Astuces | Alexander blog

  6. thanks man, very usefull especially when you have a tons of projects depeding on each others, when a “real” compilation error occurs it would be hidden by this background compilation

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s