简体   繁体   English

如何设置Pre + Post Build Event以从所有文件/文件夹中删除只读属性?

[英]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.

相关问题 如何避免使用TFS Build将文件夹设为只读 - How to avoid TFS Build making folders Read-Only 如何在 VS 中设置后期构建事件以复制所有附属程序集 - how to set post build event in VS to copy all satellite assemblies 构建前和构建后事件参数 - Pre and Post Build event parameters NuGet为没有访问权限的包创建只读文件夹 - NuGet creates read-only folders for packages without access 之前/之后的构建事件Visual Studio - pre/post build event Visual Studio Visual Studio之前/之后生成事件-将文件复制到安装项目中的目录 - Visual Studio Pre/Post Build Event - Copy files to Directory in setup project 每次获取VS 2012最新版本后,删除文件和文件夹的只读属性 - removing read only attribute for files and folders after getting latest version in VS 2012 every time 在 VS 2017 的预构建事件中使用 protoc 从 .proto 文件生成 c# 文件 - Generating c# files from .proto files using protoc on pre build event in VS 2017 ReSharper function 显示“文件仍为只读” - ReSharper function shows "Files still read-only" 如何判断应用程序是作为发布后/构建前事件还是独立运行? - How can I tell if an application is running as a post/pre-build event or standalone?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM