Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Would you like to continue and run the last successful build? [closed]

You're in Visual Studio... you press F5 (Run) and are greeted by this dialog:

There were build errors. Would you like to continue and run the last successful build?

Wonderful.

I'm sure there are cases where running the last successful build is useful, however, I have never purposefully answered yes to this question. Oh sure, I've clicked Yes plenty of times, and waiting in frustration for the first opportunity to undo my blunder, but nothing more.

So, have you ever found this feature useful? And if so, under what circumstances did it become helpful for you to be able to run the last successful build of your application?

How often do you accidentally click Yes and kick yourself while waiting for the app to start?

like image 220
joshuapoehls Avatar asked Feb 27 '09 19:02

joshuapoehls


People also ask

How do you fix there were build errors Would you like to continue and run the last successful build?

Tools > Options > Projects and Solutions > Build and RunThe 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.

How do you fix there were build errors would you like?

In Visual Studio 2019 Update 16.5 or later you can go to Tools > Options > Projects and Solutions > Build and Run and set 'On Run, when build or deployment error occurs' to one of the options below. Once this is set, running and debugging tests will honor this option as well.

How do I remove a build error?

Go to Tools >> Options… >> Projects and Solutions >> Build and Run. On the right-hand side panel, just change the value in dropdown displayed under 'On Run, when build or deployment errors occur:' to 'Do not Launch' and we are done.


Video Answer


1 Answers

In VS2008 there are the following options you can set to change the behavior (not sure if there are similar options in other versions of Visual Studio):

Projects and Solutions/Build and Run      - On Run, when projects are out of date:            Always build           Never build           Prompt to build <== default setting      - On Run, when build or deployment errors occur:            Launch old version           Do not launch           Prompt to launch <== default setting 

Set the above options to "Always build" and "Do not launch" and you get what I consider a more ueseful behavior. Though sometimes when I try to launch the debugger and there's a build error it takes me a few seconds to realize why I'm not getting to the breakpoint I thought I'd be hitting (it might be nice to get some sort of 'toaster' type of message to knock me out of my stupor).

like image 199
Michael Burr Avatar answered Sep 23 '22 17:09

Michael Burr