Reputation: 3102
When building a Windows Forms project in Visual Studio 2010 I have a following problem occurs:
69: "Unable to copy file "bin\Debug\MyApplication.exe". The process cannot access the file because it is being used by another process."
I can release and remove this file manually using "Unlocker" application and there I can see that a devenv.exe blocks my application (The Visual Studio itself). What are the possible reasons for this and how it can I overcome this problem.
Upvotes: 4
Views: 1332
Reputation: 1304
I unchecked the Enable the Visual Studio hosting process
in Project properties -> Debug tab
Upvotes: 0