您的位置:首页 > 运维架构

Unable to copy from obj\debug to bin\debug

2014-03-21 15:30 429 查看


在用C#写一个简单的关于网络应用的程序时出现了一个错误,“Unable to copy from obj\debug to bin\debug”,在网上查了一下,好像是vs一个固有的问题,不过还好有解决办法:

Create a pre-build action in your project by going to project properties (right-click on the project in the solution explorer, and select the Properties option), select the Build Events tab. Add this code:

if exist "$(TargetPath).locked" del "$(TargetPath).locked"

if not exist "$(TargetPath).locked" move "$(TargetPath)" "$(TargetPath).locked"



我的已经汉化了,在解决方案处右键你的项目名称,选择属性。然后再生成事件中加入代码,就可以了。

可以参考http://social.msdn.microsoft.com/Forums/zh-CN/Vsexpressinstall/thread/5b71eb06-5047-483d-8fd3-b75c102d41e9
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: