Unable to copy a file from obj\Debug to bin\Debug
- by M.H
I have a project in C# and I get this error every time I try to compile the project :
(Unable to copy file "obj\Debug\Project1.exe" to "bin\Debug\Project1.exe". The process cannot access the file 'bin\Debug\Project1.exe' because it is being used by another process.), so I have to close the process from the task manager.
my project is only one form and there is no multithreading. what is the solution (without restarting VS or Killing the process)?