visual-studio - 为什么在 Resharper/MSTest 下调试时引用的 dll 会被锁定?

标签 visual-studio unit-testing debugging resharper mstest

我对程序集 A 中的方法进行了集成测试。程序集 A 通过项目引用引用程序集 B。我在 Visual Studio 2010 调试器下在 Resharper 6.1 单元测试场景中运行它们。测试引擎是微软的原生 MSTest。

我得到了臭名昭著的

The process cannot access the file ...\B.dll because it is being used by another process.



信息。我已经验证没有其他进程处理该文件(例如,通过 Sysinternal 的 Process Explorer)。

在调试器之外运行测试工作正常。任何想法为什么它会在调试器下发生以及我可以做些什么来修复它?

最佳答案

我也看到过类似的情况,在任务管理器中发现vtest.discoveryengine.exe和vtest.executionengine.exe还活着。我杀了两个,这解决了问题。

关于visual-studio - 为什么在 Resharper/MSTest 下调试时引用的 dll 会被锁定?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13278846/

相关文章:

c# - 在 Visual Studio 2012 中设置多个断点

visual-studio - 某些 XAML 文件的 Intellisense 中断

c# - Microsoft.VisualStudio.TestPlatform.TestFramework 和 Microsoft.VisualStudio.QualityTools.UnitTestFramework 之间的区别

java - 一些输入文件使用或覆盖了已弃用的 API Flutter build android

ASP.Net VirtualPathProvider 和 Visual Studio Intellisense

c++ - 集成 Qt 框架、Netbeans IDE、Visual Studio C++ 编译器

c# - 为什么不将所有服务类都集中到一个工厂方法中(而不是注入(inject)接口(interface))?

python - 反向修补的 django-localeurl 在单元测试中不起作用

wordpress - Facebook 调试器打开图形图像在第一次尝试时没有抓取

javascript - 又一个 'Uncaught TypeError: Cannot call method ' apply ' of undefined '