I have a simple WinForms solution in VS 2010. Whenever I build it, output file (bin\\debug\\app.exe) ends up locked, and subsequent builds fail with a message like
\"
I had the same problem and I found out, that VS only locks the exe when I opened a Form or UserControl in VS before building.
The solution was quite easy, I just had to close any Form/UserControl before I build the solution and it worked.