cannot modify .csproj files using build auto with tfs 13

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-03 16:51:42

问题


I created a workflow activity named EditCsproj which is a C# class that I added to my build template. I put it right after the Initialize Workspace step.

This workflow has to get all .csproj files in the directory path that I provide as a parameter and it has to modify them.

But for each files, I have the following error :

Access to the path 'file.csproj' is denied.

I run Visual Studio with Administrator rights and I already changed the msbuild multi-proc property to false.

Does anybody have an idea?


回答1:


That's a classic gotcha. You need to remove the read-only flag from the files before editing them.



来源:https://stackoverflow.com/questions/30392615/cannot-modify-csproj-files-using-build-auto-with-tfs-13

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!