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 have created a new blank solution and added all the old files to it. This somehow solved the problem.