[英]How to set Pre + Post Build Event to remove Read-Only attribute from ALL files/folders?
I'm running into Unauthorized issues with our new TFS build templates on the build machine when TFS attempts to build our solution - multi-proc is causing issues and after days of researching/troubleshooting, I'd like to try and set a pre and post build event to mark all files/folders as NOT read-only. 当TFS尝试构建我们的解决方案时,我在构建机器上遇到了新的TFS构建模板的未经授权的问题 - 多进程导致问题,经过数天的研究/故障排除后,我想尝试设置一个pre和post build事件将所有文件/文件夹标记为NOT只读。 I have this:
我有这个:
attrib -r "$(ProjectDir)*.*"
But I'm not sure that this will work as expected (all folders/files/subfolders etc). 但我不确定这是否会按预期工作(所有文件夹/文件/子文件夹等)。
你忘记了电话 ,这应该工作:
call attrib -r "$(ProjectDir)*.*" /s
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.