views:

293

answers:

2

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?

+3  A: 

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.

Hans Passant
Just checked and its set to Always Build... So it shouldn't be doing this.
jamone
Works on my machine. Used to work on yours. Reboot is next.
Hans Passant
Reboot didn't fix it but changing the "On Run, when projects are out of date" = Always build to Do not launch saving/quitting VS then changing it back fixed it.
jamone
That's a bug. Want to submit it to connect.microsoft.com?
Hans Passant
@Hans: of course, how do you reproduce this? Convincing the people at microsoft connect that it truly is a problem is near impossible unless it's reproducible. Which only makes sense, as if you can't then chances are one of the dev's can't
Chris Lively
A: 

Had the same thing happen, (and have had it previously) last time i ended up starting with a new project, and adding existing code to it to replicate the original project/solution, which worked. this is much easier :)

Cerian