onkami
onkami

Reputation: 9441

Visual Studio 2010 starts code even when current build did not succeeded - how to disable?

At my workplace when I click ">" (Debug) button, my C# project first builds and then it runs ONLY if build was ok.

At other place, regardless of the build, last successful build runs. This is annoying.

I am having slight problems figuring out how to disable this. Thank you for your help!

Upvotes: 2

Views: 76

Answers (1)

Damien_The_Unbeliever
Damien_The_Unbeliever

Reputation: 239824

Tools -> Options -> Projects and Solutions -> Build and Run

"On run, when build or deployment errors occur" has a drop down set of options. The default is "Prompt to launch", but yours is probably set to "Launch old version"

enter image description here

Upvotes: 2

Related Questions