发布时从obj和bin文件夹中删除只读 [英] Remove read only from obj and bin folders while publishing

查看:93
本文介绍了发布时从obj和bin文件夹中删除只读的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每当我从tfs 2012中获取我的项目的新内容并尝试发布它时,它会给我一个错误,例如无法从obj\debug ....复制到bin\debug .....

要删除此错误,我需要从obj和bin文件夹中删除只读。我想一劳永逸地摆脱这些错误。我怎么能默认从这两个文件夹中删除只读。

请帮帮我......

whenever i take a new get of my project from tfs 2012 and try to publish it,it gives me error like "Unable to copy from obj\debug.... to bin\debug....."
To remove this error ,i need to remove read only from obj and bin folders.I want to get rid of this errors once and for all.How can i by default remove read only from these two folders.
Help Me Please...

推荐答案

这些文件夹不应该在源代码管理中。如果您需要(复制)参考文件,请更好地创建包含文件夹(并尽可能使用项目参考)。

很高兴您发现项目结构存在此问题,现在是时候更改它了。

将生产所需的一切(也可能意味着测试)放入专用文件夹并签入。遵循应该始终保存的规则来删除完整的bin和obj文件夹,重建后一切都应该再次运行。
Those Folders shouldn't be in source control. If you need (copied) references better create an "include" folder (and or use project references where possible).
Be happy you found this problem with your project structure, now it's time to change it.
Put everything you need for "production" (could also mean testing) into dedicated folders and check in those. Follow the rule that it should always be save to delete the complete bin and obj folders and after a rebuild everything should work again.


这篇关于发布时从obj和bin文件夹中删除只读的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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