D365FO X++ tip for developers: How to solve error X++ project cannot be built. Another build is in progress

Just a quick tip for X++ developers, since I couldn’t find a solution when searching around the net.

Sometimes when building a solution, Visual Studio may freezes/crashes. So after restarting Visual Studio, you may encounter this error:

Now usually you could cancel the build, just by going to Build > Cancel, like this:
image

But this doesn’t work in this instance, so you’ll have to kill the build process manually. Just open task manager (Ctrl + Shift + Esc) and find the process xppcAgent and right click > End task.

Now you should be able to build again!