Visual Studio: Re-enable “Build failed, run last s

2019-01-08 21:25发布

问题:

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:

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.