Visual Studio 2010 isn't building before a run when there are code changes

jamone picture jamone · Apr 15, 2010 · Viewed 52.2k times · Source

I've been using using F5 (Start Debugging) for years to build the code (if its out of date), and then debug. This was working on VS 2010 also, however today it just start debugging without a build. Say I do a clean on the project, and then hit F5 instead of building it so it can run it throws an error message saying that the exe doesn't exist to run. How do I make it build first? What could have changed?

Answer

Hans Passant picture Hans Passant · Apr 15, 2010

Tools + Options, Projects and Solutions, Build and Run. "On Run, when projects are out of date" = Always build. The one below that = Do not launch.