如何解决另一个进程正在使用的文件? [英] How to resolve file being used by another process?

查看:57
本文介绍了如何解决另一个进程正在使用的文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在VS.NET 2010中调试,没有问题.但是现在无法建造.我收到错误消息:

I've been debugging in VS.NET 2010 without issue. But now cannot build. I get the error:

Unable to copy file [filename] to bin\Debug\[filename].  The process cannot access the file bin\Debug\[filename] because it is being used by another process.

对于六个不同的文件,我得到此错误.我已经重新启动VS.NET 2010,但仍然收到错误消息.在不重新启动计算机的情况下,没有人知道如何解决此问题吗?

I get this error for six different files. I've restart VS.NET 2010 but still get the error. Without restarting the machine, does anyone know how to resolve this?

推荐答案

关于SO的一堆问题与此相关,所有问题都带有解决问题的建议.对我而言,直到我找到

There are a bunch of questions on SO related to this, all with suggestions and recommendations for solving the issue. For me, none worked until I found this one.

简而言之,如果是系统进程锁定了文件,并且您已停止了Application Experience服务,请重新启动它.认真地.

In short, if it's the System Process locking the file, and you have the Application Experience service stopped, restart it. Seriously.

这篇关于如何解决另一个进程正在使用的文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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