views:

329

answers:

2

Visual Studio builds the entire solution when I exit debug mode.

This is very annoying as the solution contains 42 projects (ASP.NET MVC, IIS hosted WCF, Silverlight apps and others) and the build process locks Visual Studio for aprox. 30 seconds.

What causes Visual Studio to do a full rebuild of the solution? Is there a setting that I can turn on to determine the root of the problem?

A: 

Are you editing the source code during debugging?

VS does a "temporary"* compile in these cases to let you carry on running the program. Once you exit debug mode it knows this and can do a full rebuild of the project.

If you're going to do further changes then this build is a waste of time. Have you looked at the options on Tools > Options > Debugging > Edit and Continue? There's an option called Relink code changes after debugging and it's enabled by default. Try turning that off.

* this is the wrong term, but I can't remember the correct one at the moment.

ChrisF
no code changes. it even happens when I hit start, then stop after the website's start page has fully loaded in the browser.
o_o
@o_o - You could try turning that option off anyway - if nothing else it would eliminate it as a possibility. *This is the sound of me clutching at straws!*
ChrisF
Turning that setting off did not have the desired effect...
o_o
@o_o - OK, I'm completely stumped. Don't take this the wrong way, but without seeing exactly what options you choose, what steps you take and exactly what happens during your debug session, I can't think what could be causing this behaviour. Sorry I can't be of more help.
ChrisF
A: 

I had the same problem. Today I disabled whole "Edit and Continue" option and annoying recompilation hasn't occured since then.

that does not solve my case unfortunately :(
o_o