NUnit 2.5.8,很多nunit-agent.exe [英] NUnit 2.5.8, lots of nunit-agent.exe

查看:120
本文介绍了NUnit 2.5.8,很多nunit-agent.exe的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每次我在nunit中运行测试时,我都会得到另一个nunit-agent,该代理不会退出测试,或者在nunit中重新加载测试或重新启动nunit时. 当我尝试从VS2010附加到进程并尝试调试运行的测试

Each time I run a test in nunit I get another nunit-agent, which does not exit the test completes, or when the tests are reloaded in nunit or when I restart nunit. This ever increasing list of nunit-agent.exe's creates a increasing problem when I try to attach to process from VS2010 and try to debug the running test

任何想法, 试图杀死这些过程并不是解决问题的答案.... (我的环境VS2010,dot net 4.0,nunit 2.5.8,...)

Any ideas, Trying to task kill these process is not the answer .... (my environment VS2010, dot net 4.0, nunit 2.5.8, ... )

推荐答案

我刚刚遇到了同样的问题.解决方法是编辑 NUnit.exe.config 文件并添加以下文件:

I've just encountered the same problem. The fix is to edit the NUnit.exe.config file and add this:

<startup>
  <requiredRuntime version="4.0.30319" />
</startup>

作为配置元素的子代.

它还解决了另一个问题,即您无法从调试器连接到NUnit以便在测试中设置断点.

It also fixes another problem which is that you couldn't attach to NUnit from the debugger in order to set breakpoints in your tests.

这篇关于NUnit 2.5.8,很多nunit-agent.exe的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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