Unable to copy file "obj\Debug\MyProjectXXX.dll" to "bin\Debug\MyProjectXXX.dll". The process cannot access the file 'bin\Debug\MyProjectXXX.dll' because it is being used by another process.
It seems that the solution to this problem is to add a pre-build event that works some unlocking spell on the exe, found the answer here (which curiously says MS fixed it in 2003)