Based on your description, we verified this issue in VS 2019 and the issue could not be reproduced. If you want to cancel build, you can go to “Build-Cancel Build”, or press “Ctrl + Back” to cancel the build.
Stop a build (console)If the build-project-name : build-ID page is displayed, choose Stop build. In the navigation pane, choose Build history. In the list of builds, select the box for the build, and then choose Stop build.
In order to cancel the running build, you can click on Build -> Cancel Build in the top menu.
You can hit Ctrl+Break on the keyboard to cancel/stop a build that is currently in progress.
Go to Visual Studio Build Menu -> cancel build , easy :)
This is crude, but it works well. The Visual Studio on one of my projects (I turn MVC view building on to catch markup errors), well, the project becomes unresponsive while building. I can't cancel the build using the keyboard shortcuts.
So I made this batch file that sits on my quick launch task bar.
@echo off
echo KILL BILLd
for /L %%i in (1,1,10) do (
Taskkill /IM aspnet_compiler.exe /F
timeout 1
)
I also made the batch file launch minimized. The build stops and Visual Studio just throws in the error window that there was a problem building.
Ctrl + Break works, but only if the Build window is active. Also, interrupting the build will sometimes leave a corrupted .obj
file that will have to be manually deleted in order for the build to proceed.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With