发布时出错 无法删除目录“bin\Debug\app.publish\"; [英] Error during publish Unable to remove directory "bin\Debug\app.publish\"

查看:45
本文介绍了发布时出错 无法删除目录“bin\Debug\app.publish\";的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我发布、构建、重建或清理解决方案时,抛出以下错误:

When I publish, build , rebuild or clean solution, the following error is thrown:

错误 1 ​​无法删除目录bin\Debug\app.publish\".找不到路径HondaInstantFeedback.exe.config.deploy"的一部分.本田即时反馈

Error 1 Unable to remove directory "bin\Debug\app.publish\". Could not find a part of the path 'HondaInstantFeedback.exe.config.deploy'. HondaInstantFeedback

但是当我直接运行它时,它工作得很好.它的 winform 项目,我正在使用 vs 2010.

But when I directly run it works perfectly. Its winform project and i am using vs 2010.

推荐答案

我尝试了一种对我来说很成功的愚蠢技术,我尝试在另一个系统上成功构建它并用我的旧代码替换了构建的代码.现在一切正常.不知道解决方案的原因,但它节省了我的时间,也可能对其他人有所帮助.

I tried one silly technique which is success for me, i tried to built it on another system successfully and replaced built code with my old code. Now every things works fine. Don't know the reason of solution but it saved my hours might help someone else also.

这篇关于发布时出错 无法删除目录“bin\Debug\app.publish\";的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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