简体   繁体   English

测试后如何删除vshost.exe?

[英]How to remove vshost.exe after testing?

In VS2010, I'm using TestDriven.net to execute unit tests. 在VS2010中,我正在使用TestDriven.net执行单元测试。 It seems that each time I run a test, another myappname.vshost.exe loads into memory. 似乎每次运行测试时,另一个myappname.vshost.exe会加载到内存中。 It not uncommon to accumulate well over 20 of these processes. 累积超过20个这样的过程并不少见。 Is there something I can do to prevent this? 我能做些什么来阻止这种情况吗?

Or, is there a quick way to kill all of these processes? 还是有一种杀死所有这些过程的快速方法?

If you disable "Enable the Visual Studio Host Process" checkbox on the debug page of your project properties, this won't spawn. 如果在项目属性的调试页上禁用“启用Visual Studio主机进程”复选框,则不会产生该复选框。 If you notice that this hampers your work - ie you need features of the host process, you can try to write a simple script to kill the process that you run after each debug session. 如果您注意到这妨碍了您的工作-即您需要宿主进程的功能,则可以尝试编写一个简单的脚本来终止每个调试会话后运行的进程。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM