NUnit:“该进程无法访问该文件......因为它正被另一个进程使用."

编程入门 行业动态 更新时间:2024-10-28 09:15:34
本文介绍了NUnit:“该进程无法访问该文件......因为它正被另一个进程使用."的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我使用的是 NUnit GUI 版本,当我在其中加载了一个测试项目来尝试测试时,它开始对我感到不安.如果我在 Visual Studio 中进行更改,然后尝试重建解决方案,则会引发错误无法将文件 obj\Debug\foo.dll 复制到 bin\Debug\foo.dll.进程无法访问文件 bin\Debug\foo.dll 因为它正被另一个进程使用."

I'm using the NUnit GUI version, and it started to get upset at me when I have a test project loaded in there trying to test things. If I make a change in Visual Studio, and then try to rebuild the solution, it throws the error "Unable to copy file obj\Debug\foo.dll to bin\Debug\foo.dll. The process cannot access the file bin\Debug\foo.dll because it is being used by another process."

当然,这是我加载到 GUI 中的 DLL.以前还可以,只是在构建后刷新项目引用,但现在它似乎阻止了它.我怎样才能恢复这种行为?

This is the DLL I have loaded into the GUI, of course. It used to be OK, and just refresh the project reference after a build, but now it seems to be blocking it. How can I get back to that behavior?

顺便说一下,我试过启用/禁用卷影复制设置,结果都一样.

I've tried enabling/disabling the shadow copy setting by the way, with the same results either way.

VS2008 SP1 和 NUnit 2.4.8,如果这很重要.

VS2008 SP1 and NUnit 2.4.8, if that matters.

推荐答案

想通了:卷影复制"服务因某种原因被关闭.重新开机,一切恢复正常.

Figured it out: the "Volume Shadow Copy" service was shut off for some reason. Turned it back on, and everything's back to normal.

更多推荐

NUnit:“该进程无法访问该文件......因为它正被另一个进程使用."

本文发布于:2023-11-10 05:56:49,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1574532.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:进程   因为它   该文件   无法访问   NUnit

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!