Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm writing code in Visual Studio but whenever I want to test the application and press the green arrow for "Start debugging", Visual Studio does not automatically recompile the active solution for me and I have to manually build the solution then debug it.

Visual Studio used to automatically build before debug and I want this back as contantly having to manually build is a serious pain.

Thanks

share|improve this question

2 Answers 2

up vote 14 down vote accepted

In the Visual Studio settings under Projects and Solutions->Build and Run change the option On Run, when projects are out of date: from Never Build to Always Build

Edit: Per your comments, open the "Configuration Manager" (in the Debug/Release dropdown) and ensure that the Build checkbox is checked for all of the projects you want to build in each of your configurations.

share|improve this answer
    
its not working :( –  Kurru Apr 28 '10 at 16:56
    
Changed the build type to "release" and it worked fine. What are the differences between building for 'Debug' instead of 'release'? –  Kurru Apr 28 '10 at 17:01
4  
Did you open the Configuration Manager to make sure that the "Build" checkbox is checked under the debug configuration? –  heavyd Apr 28 '10 at 21:13
    
Ahhh thank you! Thank fixed it! Never even noticed the configuration manager menu item before. –  Kurru Apr 29 '10 at 11:09
1  
There is also an option "Only build startup projects and dependencies on Run". If it's set and your dependencies are not "good enough", Studio might skip building some of your projects. Unsetting this option helps. –  Steed Aug 27 '12 at 12:16
  • Navigate to Debug > Options and Settings in the VS menu or Tools > Options...
  • Go to 'Projects and Solutions' > 'Build and Run' and make sure that the “Only build startup projects and dependencies on Run” box is left unchecked.
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.