【问题标题】:The file is being used by another process error when building solution in VIsual Studio在 VIsual Studio 中构建解决方案时,该文件正被另一个进程错误使用
【发布时间】:2011-04-28 07:20:39
【问题描述】:

在 Visual Studio 2010 中构建 Windows 窗体项目时,出现以下问题:

69:“无法复制文件“bin\Debug\MyApplication.exe”。该进程无法访问该文件,因为它正被另一个进程使用。”

我可以使用“Unlocker”应用程序手动释放和删除此文件,在那里我可以看到 devenv.exe 阻止了我的应用程序(Visual Studio 本身)。造成这种情况的可能原因是什么,以及如何克服这个问题。

【问题讨论】:

    标签: .net visual-studio visual-studio-2010 compiler-errors


    【解决方案1】:

    是的,在这个 VS 2010 中有一只松鼠。有多种原因。 this link 中的解决方法第一次为我解决了这个问题。

    但它又发生了。只需使用您自己的帖子标题在 Google 中搜索,您就会发现 5 个不同的原因。

    【讨论】:

      【解决方案2】:

      我取消选中启用 Visual Studio 托管进程

      在项目属性 -> 调试选项卡中

      【讨论】:

        猜你喜欢
        • 2012-01-14
        • 2016-01-18
        • 1970-01-01
        • 2015-11-15
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多