The Computer Oracle

Visual Studio not auto-building when I press the debug button

--------------------------------------------------
Hire the world's top talent on demand or became one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: Fantascape Looping

--

Chapters
00:00 Visual Studio Not Auto-Building When I Press The Debug Button
00:31 Accepted Answer Score 49
00:58 Answer 2 Score 13
01:15 Answer 3 Score 0
01:25 Thank you

--

Full question
https://superuser.com/questions/135627/v...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#visualstudio2008 #debug #compile #build

#avk47



ACCEPTED ANSWER

Score 49


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.




ANSWER 2

Score 13


  • 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.



ANSWER 3

Score 0


For me, I was missing the config under Project -> Project Dependencies, which updates the .sln file to ensure correct build order for projects.