Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C# window application: "MyApplication.vshost.exe" Continuous coming at task manager

Tags:

c#

.net

In my c# windows application whenever I open my solution in visual studio 2008, than "MyApplication.vshost.exe" is always visible at window task manager--> Process tab.

When i tried to kill that, it again reappear at Process tab.

I am not getting for what vshost.exe created? and why its not getting removed from task manager? How can we remove it?

like image 949
Hemant Kothiyal Avatar asked Aug 03 '09 08:08

Hemant Kothiyal


1 Answers

The vshost.exe feature was introduced with VS2005.

The purpose of it is mostly to make debugging launch quicker - basically there's already a process with the framework running, just ready to load your application as soon as you want it to.

See this MSDN article and this blog post for more information.

You can stop the *.vshost.exe from spawning by -

Right clicking MyProject -> Properties -> Debug tab, and unchecking the Enable the Visual Studio hosting process checkbox.

like image 146
Kirtan Avatar answered Oct 20 '22 18:10

Kirtan