How do I cancel a build that is in progress in Visual Studio?

Almost unconsciously I hit the keyboard build macro that builds my entire solution. This can happen just as I notice a code change. The build dominates my computer, and I basically have to wait till it finishes. 10 seconds!

How can I cancel a build?


Solution 1:

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

Solution 2:

Go to Visual Studio Build Menu -> cancel build , easy :)

enter image description here