通过建立与TFS 13自动无法修改的.csproj文件 [英] cannot modify .csproj files using build auto with tfs 13
问题描述
我创建了一个名为工作流活动 EditCsproj
这是我加入到我的生成模板的C#类。我把它放在右后的 初始化工作区
的一步。
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.
这工作流程要得到所有的 .csproj的
的在我提供作为参数,它必须修改它们的目录路径的文件。
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 :
的访问路径file.csproj'被拒绝。的
我运行Visual Studio具有管理员权限,我已经改变了的 的MSBuild多PROC
的属性设置为false。
I run Visual Studio with Administrator rights and I already changed the msbuild multi-proc
property to false.
没有任何人有一个想法?
Does anybody have an idea?
推荐答案
这是一个典型的疑难杂症。你需要编辑它们之前删除的文件的只读标志。
That's a classic gotcha. You need to remove the read-only flag from the files before editing them.
这篇关于通过建立与TFS 13自动无法修改的.csproj文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!