I can't kill MyApp.vshost.exe

后端 未结 4 1626
无人共我
无人共我 2020-12-05 09:19

I\'ve managed to get myself in a state where I\'ve no instances of devenv running, but still a MyApp.vshost.exe in the background (no visible windows or consoles).

I

相关标签:
4条回答
  • 2020-12-05 09:32

    Maybe that's the same problem as described in https://stackoverflow.com/a/1582747/254041 (pending I/O processes):

    The MSDN API ref says "TerminateProcess initiates termination and returns immediately. This stops execution of all threads within the process and requests cancellation of all pending I/O. The terminated process cannot exit until all pending I/O has been completed or canceled.". Which means so much as: your I/O can block this process (though I wonder how it can bring your process to 100%, I/O usually doesn't do that).

    0 讨论(0)
  • 2020-12-05 09:41

    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.

    0 讨论(0)
  • 2020-12-05 09:42

    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.

    0 讨论(0)
  • 2020-12-05 09:49

    I was able to kill my persistent vshost process by following these steps (VS2010):

    1. open the properties of my executable project
    2. in the "Debug" tab, uncheck "Enable the Visual Studio hosting process"
    3. save the project file

    That was it, the process stopped, and there was no need to restart Visual Studio.

    0 讨论(0)
提交回复
热议问题