I have an integration test for a method in assembly A
. Assembly A
references assembly B
via project reference. I run them under the Visual Studio 2010 debugger in a Resharper 6.1 unit testing scenario. The testing engine is Microsoft's native MSTest.
I get the infamous
The process cannot access the file
...\B.dll
because it is being used by another process.
message. I have verified that no other process has a handle on that file (e.g. via Sysinternal's Process Explorer).
Running the test out of the debugger works fine. Any ideas why it happens under the debugger and what I can do to fix it?