Recover the “There were build errors. Would you like to continue and run the last successful build?” dialog in Visual Studio
Our topic in this article is a dialog box that everyone who writes in Visual Studio encounters at least once:
“There were build errors. Would you like to continue and run the last successful build?”

Most people click the “Do not show this dialog again” checkbox and then press “Yes”. As a result of this, instead of the current code, last build runs all time with no more dialog box and this is something the developers would never want.
So, how do we undo this change?
We will focus on the solution on Visual Studio 2017.
Tools > Options > Projects and Solutions > Build and Run

As the result of our selections, the form on Build and Run has these selections. The selection in the second dropdown “On Run, when build or deployment errors occur”, even if the code has the error during the run, project runs with the last successful build. That’s why it should be changed.

The “prompt to launch” option from the 3 options you see above will allow us to return to the desired behavior.

It has the selection of what we want.
Have error-free code!