PrincessePoney
PrincessePoney

Reputation: 43

cannot modify .csproj files using build auto with tfs 13

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.

enter image description here

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?

Upvotes: 4

Views: 526

Answers (1)

Giulio Vian
Giulio Vian

Reputation: 8343

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

Upvotes: 4

Related Questions