Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio stuck at "build must be stopped before the solution can be closed"

When the Visual Basic compiler (Vbc.exe) crashes, Visual Studio fails to detect this and becomes stuck in an inoperable state. The "Build" menu appears as it would if the solution were building, but the Cancel Build (Ctrl+Break) menu item has no effect. Trying to close the application or the solution gives the error:

The build must be stopped before the solution can be closed.

I can't find any way to remedy this short of terminating the devenv.exe process and restarting Visual Studio completely. Is there anything quicker and less severe?

(Microsoft claims to have fixed this bug in 2005, but I'm experiencing it with VS2008.)

like image 220
duozmo Avatar asked May 20 '11 16:05

duozmo


People also ask

How do I stop build solution in Visual Studio?

You can hit Ctrl + Break on the keyboard to cancel/stop a build that is currently in progress.

How do you stop a build in xamarin?

Ctrl+Break or Go to Visual Studio 2013 Build Menu -> cancel build , that easy. reference Hope helps someone.

How do I finish a Visual Studio project?

Find the drop-down box at the top of Visual Studio's window that says Debug. Select Release. Hit F6 to build it. Switch back to Debug and then close Visual Studio.

What is the name of the window in Visual Studio that allows you to work with the files included in a project?

The project files appear on the right side of the Visual Studio IDE, in a window called the Solution Explorer. In the Solution Explorer window, select the Program.


1 Answers

I'd look for msbuild process(es) to kill before devenv. And make sure vbc really has gone too.

And as the comments say, try using msbuild yourself.

Seeing as I've got a Nice Answer badge from this, I feel I should emphasise my comment below: In all the cases where this has happened to me there have been no msbuild or vbc processes to kill. If anyone gave or gives me a +1 because they did find a stuck msbuild or vbc process, please comment that this was the case too.

like image 54
Mark Hurd Avatar answered Sep 20 '22 13:09

Mark Hurd