首页 > 代码库 > error MSB3027: Could not copy "xxx.dll" to "xxx.dll". Exceeded retry count of 10. Failed.

error MSB3027: Could not copy "xxx.dll" to "xxx.dll". Exceeded retry count of 10. Failed.

错误提示内容:

C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(3363,5): error MSB3027: Could not copy "obj\Debug\DBFSR.dll" to "..\BIN\DBFSR.dll". Exceeded retry count of 10. Failed.

 技术分享

这种错误是由于在一个包含类库项目的解决方案中,你在后台已经启动了这个解决方案。但当你再次重新编译这个解决方案中的一个生成可执行文件的项目,且这个项目还引用了其它的生成类库的项目。造成正在运行的.exe程序正在使用.dll,而你又要拷贝这些.dll到.exe所在的目录。

解决方案是:关闭在运行的解决方案的.exe程序即可。

error MSB3027: Could not copy "xxx.dll" to "xxx.dll". Exceeded retry count of 10. Failed.