I can't kill MyApp.vshost.exe
Solution 1:
I was able to kill my persistent vshost process by following these steps (VS2010):
- open the properties of my executable project
- in the "Debug" tab, uncheck "Enable the Visual Studio hosting process"
- save the project file
That was it, the process stopped, and there was no need to restart Visual Studio.
Solution 2:
It seems to be the normal behaviour for this task. When you kill it the task is restarted. So i advice you to close Visual Studio, that closes the *.vshost.exe task.
Solution 3:
I had the same problem while working on a project with .NET 2.0 as target framework. Temporary changing the target framework to .NET 4.0 client did the job for me.
However, Iam unsure how this is (is it?) related to the file lock issue.