105

When a build fails, VS pops up with an option to run the last successful build. Someone clicked "Yes" and "Don't show this dialogue box again" on my machine, and now I'm stuck with that setting. How can I reset it?

1
  • 1
    Thank you so much for that question. Whoever thought to run the last successful build without even a notification would be a great Idea... I dont even have apropriate words for that available. Can screw up the whole test environment in worst case. Mar 26, 2021 at 13:23

1 Answer 1

155

The process is as follows for Visual Studio 2010 and above (but should be similar for previous versions):

  • On the menubar go to: 'Tools' --> 'Options'
  • Go to 'Project and Solutions' --> 'Build and Run'
  • There you can find a combobox under the label 'On run, when build or deployment errors occur...'.
  • Select an appropriate option, for example Prompt or Do not launch

The process remains the same in VS2022.

2
  • Doesn't work for me in VS2023. Build fails with a number of errors ...\Program.cs(10,19,10,30): error CS8602: Dereference of a possibly null reference - but I can still run the app! Nov 9 at 2:03
  • This answer is 13yo and I am not using VS anymore. If things changed in VS2023 maybe we should edit this.
    – Simon
    Nov 11 at 11:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.