C# 窗口应用程序:“MyApplication.vshost.exe” 在任务管理器中连续出现

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1221205/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-06 13:49:36  来源:igfitidea点击:

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

c#.net

提问by Hemant Kothiyal

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.

在我的 c# windows 应用程序中,每当我在 Visual Studio 2008 中打开我的解决方案时,“MyApplication.vshost.exe”总是在窗口任务管理器-> 进程选项卡中可见。

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?

我没有得到 vshost.exe 创建的内容?为什么它没有从任务管理器中删除?我们怎样才能删除它?

采纳答案by Martin Liversage

You can read more about vshost.exe on MSDN.

您可以在 MSDN 上阅读有关vshost.exe 的更多信息。

The hosting process is a feature in Visual Studio 2005 that improves debugging performance, enables partial trust debugging, and enables design time expression evaluation. The hosting process files contain vshost in the file name and are placed in the output folder of your project.

宿主进程是 Visual Studio 2005 中的一项功能,可提高调试性能、启用部分信任调试并启用设计时表达式评估。托管进程文件在文件名中包含 vshost 并放置在项目的输出文件夹中。

回答by Kirtan

The vshost.exe feature was introduced with VS2005.

vshost.exe 功能是在 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 articleand this blog postfor more information.

有关详细信息,请参阅此 MSDN 文章此博客文章

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

您可以通过以下方式阻止 *.vshost.exe 生成 -

Right clicking MyProject-> Properties-> Debugtab, and unchecking the Enable the Visual Studio hosting processcheckbox.

右键单击MyProject-> Properties->Debug选项卡,然后取消选中Enable the Visual Studio hosting process复选框。

回答by Kevin Jones

You can disable this. Right click on the project, select properties and go to the Debug tab. In there you can uncheck the "Enable the Visual Studio hosting process" check box

您可以禁用此功能。右键单击项目,选择属性并转到调试选项卡。在那里您可以取消选中“启用 Visual Studio 托管进程”复选框