showing used by another process when debugging in VS2015 CTP5
When I develop a new winform application, if I start debug a process and then stop it, it will no longer debug again, and it shows like the following below:
warning MSB3026: Could not copy “obj\x86\Debug\xxx.pdb” to “bin\Debug\xxx.pdb”. Beginning retry 1 in 1000ms. The process cannot access the file ‘bin\Debug\xxx.pdb’ because it is being used by another process.
And After looking into it, I found a process name “conhost.exe” is still exist after the debugger stops. So I closed it manually. And the debugger will work. But this is not a perfect workaround. So I found an other workaround, the issue may happened by VS 2015 new feature, it called Analyzer. When the Analyzer is disable, the issue no longer exist. Maybe this is the perfect workaround.
If the above solution does not work, please delete .vs folder and .suo file and then try again.
Update on 2/26/2015
The issue may fixed in CTP6, please have a try.