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 freeze/crash. 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:
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!