Re-enable the “build failed, run last successful build?” Dialog in Visual Studio

This dialog is familiar to all developers who use Visual Studio:

It appears whenever your code cannot be compiled. I was in a hurry and annoyed, so I marked the “Do not show this dialog again” option and hit Yes instead of No. The dialog did no longer show up, but instead of my current code, I got the last successful build – without my changes. That was even more annoying, so I wanted the dialog back. However, which one of those many options is the one to change?

Since Visual Studio 2010, you can go to Tools > Options… and search for build and run:

All you need to do is to select the option “Prompt to launch” as the default action when an error occurs. Save this change by clicking OK. Sometimes it will only start working when you restart Visual Studio or call Clean Solution in the Solution Explorer.

This little option does not look like much but it makes errors so much more noticeable.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.