How to prevent compilation of Visual Studio after exiting debug mode?

Visual Studio creates the whole solution when I exit debug mode.

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

What makes Visual Studio do a complete rebuild of the solution? Is there a parameter that I can turn on to determine the root of the problem?

+6
debugging visual-studio-2008 build
source share
5 answers

Do you edit the source code during debugging?

VS performs a “temporary” * compilation in these cases to allow you to continue working with the program. As soon as you exit debug mode, he knows this and can perform a complete rebuild of the project.

If you intend to make further changes, this build is a waste of time. Have you looked at the options in the Tools> Options> Debug> Modify and Continue menu? There, an option called a relay code changes after debugging and is enabled by default. Try disabling it.

* This is a wrong term, but I can’t remember the right one right now.

+2
source share

I had the same problem. Today I turned off the entire Change and Continue option, and the annoying recompilation has not occurred since.

+2
source share
  • Go to Tools → Options → Projects and Solutions → Build and Run.

  • Enable Only create run projects and Run dependencies.

+1
source share

Go to Tools → Options → Debugging → Change and continue and try disabling “Changes to the relay code after debugging”

+1
source share

1- Go to Tools → Options → Projects and Solutions → Build and Run

2- Enable-> Only create run projects and Run dependencies.

3- On Run when projects are out of date

select -> prompt to build or never build (probably you don't want to do this) 
+1
source share

All Articles