从Visual Studio打开项目时,有没有停止/停止运行'vshost.exe'? [英] Is there anyway to halt/stop running of 'vshost.exe' when a project is opened from Visual Studio?

查看:229
本文介绍了从Visual Studio打开项目时,有没有停止/停止运行'vshost.exe'?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我们在 Visual Studio 中打开项目/解决方案时,项目的 vshost.exe 文件将自动执行并在内存中启动(我认为这是通过Visual工作室)这个过程(vshost.exe)将处于运行状态,直到我们从VS关闭解决方案。



我知道这个过程是从VS2005开始引入的帮助调试性能。

当我们运行 F5 时,我们的应用程序将从此过程启动但如果我们运行 ctrl + F5 那么我们的应用程序运行隔离(没有vshost.exe)。但仍然vshost.exe将在我们的项目exe旁边运行。尽管这个时间真的没有必要。因此我们丢失了一些不必要的内存(千KB)。



最后,我的问题是,无论如何/在VS中设置停止运行vshost.exe直到F5被压了。因为我问这个问题的原因是:让我说我在VS中打开了一个解决方案而我只想在没有调试的情况下运行,那么显然我会点击ctrl + F5。然后,在这种情况下,我不需要vshost.exe在后台运行。



我希望问题很明确,但如果您有任何疑问或疑惑,请告诉我。



谢谢...

When we open a project/solution in Visual studio, the project's vshost.exe file will be executed and launched in memory automatically (I think this is done by Visual studio) and this process (vshost.exe) will be in running state till we close the solution from VS.

I know that this process has been introduced from VS2005 onwards to aid the debugging performance.
Our application will be launched from this process when we run through F5 but if we run through ctrl+F5 then our app runs isolated (without vshost.exe). But still vshost.exe will be parellely running along side of our project exe. Eventhough this time not required in real sense. Hence we are loosing some memory (thousand KBs) unnecessary.

Finally, my question is, is there anyway/setting in VS to halt running of vshost.exe until F5 is pressed. Because why I'm asking this is: let's say that I opened a solution in VS and I just want to run without debugging, then obviously I will hit ctrl+F5. Then, in this case I dont need vshost.exe to be running in background.

I hope question was clear but if you get any queries or confusion please let me know.

Thanks...

推荐答案

您可以将其关闭。转到项目设置,并在调试选项卡上取消选中启用Visual Studio主机服务。
You can turn it off. Go to your project settings and uncheck the 'Enable the Visual Studio hosting service' on the debug tab.


这篇关于从Visual Studio打开项目时,有没有停止/停止运行'vshost.exe'?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆