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
Any ideas,
Trying to task kill these process is not the answer ....
(my environment VS2010, dot net 4.0, nunit 2.5.8, ... )
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>
as a child of the configuration element.
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.
I fixed this problem by upgrading to version 2.5.9 (development build). But this has other problems - so Sean's answer is better.