Visual Studio 2012警告MSB3026:无法复制DLL文件 [英] Visual Studio 2012 warning MSB3026: Could not copy DLL files

查看:603
本文介绍了Visual Studio 2012警告MSB3026:无法复制DLL文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不断得到:

警告MSB3026:无法复制dll错误.

warning MSB3026: Could not copy dlls errors.

我在解决方案中有几个项目.

I have several projects in the solution.

在构建时,我也收到错误消息:

On build, I also get the error:

错误47无法将"myapp \ bin \ Debug * .dll"复制到"bin * .dll".重试计数超过10.失败.

Error 47 Could not copy "myapp\bin\Debug*.dll" to "bin*.dll". Exceeded retry count of 10. Failed.

应用程序只是在调试过程中停止响应,因此每次都必须关闭Visual Studio.这很烦人,但现在也变得令人沮丧.

The application just stops responding in the middle of debugging, and I have to close Visual Studio every time. Which was annoying, but now it's getting frustrating as well.

我们是八名团队成员,而我们所有人都遇到了相同的错误.我们无法重建解决方案,并且该应用程序的运行速度非常慢.

We are eight team members, and all of us are getting the same error. We can't rebuild the solution, and the application is running very slow.

我们在项目中使用的一件事是 SignalR .

One of things we are using in the project is SignalR.

这些是我到目前为止尝试过的东西.他们没有帮助我,但可能会帮助读者:

These are the things I have tried so far. They didn't help me, but they might help the reader:

  1. 我尝试了 Visual Studio调试/加载中所述的解决方案速度很慢 ,但这没用.

  1. I have tried solutions described in Visual Studio debugging/loading very slow, but that didn't work.

我还尝试取消选中每个项目属性中的启用Visual Studio托管过程",但这也不能解决问题.

I have also tried unchecking Enable the Visual Studio hosting process in each project properties and that didn't fix the issue either.

解决方案在 http://social. msdn.microsoft.com/Forums/zh-CN/msbuild/thread/40ed753e-47af-4638-8a72-1d607102a05c/

在项目上预构建脚本: if exist "$(TargetPath).locked" del "$(TargetPath).locked" if exist "$(TargetPath)" if not exist "$(TargetPath).locked" move "$(TargetPath)" "$(TargetPath).locked"

Pre-build scripts on the projects: if exist "$(TargetPath).locked" del "$(TargetPath).locked" if exist "$(TargetPath)" if not exist "$(TargetPath).locked" move "$(TargetPath)" "$(TargetPath).locked"

bin文件夹不受源代码控制.

The bin folders are not under source control.

有时杀死Microsoft.VisualStudio.Web.Host.exe进程会释放文件上的锁定,但这并不总是有效.

Sometimes killing the Microsoft.VisualStudio.Web.Host.exe process releases the lock on the files, but this does not always work.

我正在以管理员模式运行Visual Studio.

I am running Visual Studio in administrator mode.

我对源代码文件夹具有完全访问权限(读/写权限).

I have full access (permissions read/write) on the source code folders.

推荐答案

这通常是您的bin目录的权限问题.在Windows资源管理器中导航到它,并确保已禁用只读".如果在更改目录的读取状态时遇到错误,请确保您在管理员级别的帐户上运行或相应提升.重新启用写权限后,您的构建应该可以正常工作.

This is generally a permissions issue with your bin directory. Navigate to it in Windows Explorer and make sure readonly is off. If you get an error changing the read status of the directory, make sure you're running on an administrator-level account or elevate accordingly. Once write permissions are re-enabled, your build should work fine.

这篇关于Visual Studio 2012警告MSB3026:无法复制DLL文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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