Time and again I have been getting this nasty error for no obvious reason as seen below –
The first step I tried is to stop the build by going to – Build-> ‘Cancel Build’. That just doesn’t work. So here are the scripts I run to close my session –
$p = get-process devenv Stop-Process $p -WhatIf Stop-Process $p
I first get the process id in the variable. Check to see if what I need to close is what I intend and then proceed to stop it. That’s all there is to do. You now need to open a new instance of Visual Studio and get cracking on whatever it is that you are working on.