的Visual Studio 2012警告MSB3026:无法复制的DLL [英] Visual Studio 2012 warning MSB3026: Could not copy dlls

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

问题描述

我不断收到警告MSB3026:无法复制的dll错误。我在解决几个项目。

在构建我也得到错误:错误47无法复制的myapp \斌\调试的* .dll到斌的* .dll。 10.超出重试次数失败。

应用程序只是停止响应的调试中,必须关闭Visual Studio的每次。这是烦人,但现在它变得令人沮丧的为好。

我们有八个团队成员和我们所有的人都得到同样的错误。我们不能重建的解决方案和应用程序的运行速度非常慢。

一,我们在项目中使用的东西是SignalR。

这些都是我曾经试过到目前为止事情。他们没有帮我,但可能有助于读者:

  1. 我已经试过这里所描述的解决方案:的Visual Studio调试/加载很慢 但没有工作。

  2. 我也尝试过取消选中启用在Visual Studio宿主进程中的每一个项目属性和didnt解决问题为好。

  3. 解决方案说明如下:<一href="http://www.richard-banks.org/2008/04/how-to-fix-problems-with-locked-files.html">http://www.richard-banks.org/2008/04/how-to-fix-problems-with-locked-files.html 和 <一href="http://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/40ed753e-47af-4638-8a72-1d607102a05c/">http://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/40ed753e-47af-4638-8a72-1d607102a05c/

  4. pre-建立在项目的脚本: ,如果存在$(TARGETPATH​​).locked德尔$(TARGETPATH​​).locked如果存在$(TARGETPATH​​)如果不存在$(TARGETPATH​​).locked移动$(TARGETPATH​​) $(TARGETPATH​​).locked

  5. 该箱文件夹不是源代码管理下。

  6. 有时候杀Microsoft.VisualStudio.Web.Host.exe过程中释放的文件锁定,但是,这并不总是有效。

  7. 我在管理员模式下运行Visual Studio。

  8. 我有完全访问(权限读/写)在源$ C ​​$ C文件夹。

解决方案

这是通常与你的bin目录中的权限问题。导航到它在Windows资源管理器,并确保只读处于关闭状态。如果你得到一个错误更改目录的阅读状态,请确保您所运行管理员级别的帐户或相应提升。一旦重新启用了写入权限,您的构建应该很好地工作。

I keep getting warning MSB3026: Could not copy dlls errors. I have several projects in the solution.

On build I also get error: Error 47 Could not copy "myapp\bin\Debug*.dll" to "bin*.dll". Exceeded retry count of 10. Failed.

Application just stops responding in the middle of debugging and have to close visual studio everytime. Which was annoying but now its getting frustrating as well.

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

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 might help the reader.:

  1. I have tried solutions described here: Visual Studio Debugging/Loading Very Slow but that didnt work.

  2. I have also tried unchecking Enable the Visual Studio hosting process in each project properties and that didnt fix the issue as well.

  3. Solutions described here: http://www.richard-banks.org/2008/04/how-to-fix-problems-with-locked-files.html and http://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/40ed753e-47af-4638-8a72-1d607102a05c/

  4. 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"

  5. The bin folders are not under source control.

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

  7. I am running Visual Studio in administrator mode.

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

解决方案

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天全站免登陆