質問

I'm working on transferring our old C++ codebase from the Perl-based build process we were using (I know, I know) to a custom TFS build. One of the things I need to do is edit a version.h file that bakes some version info into our code.

However, when I create my workspace and try to edit any of the files with a custom activity of mine, it reports that the workspace is write-only. How do I remove this restriction? I can see that Activities.CreateWorkspace has a security option, but I can't find any good documentation on how I can use that.

Any TFS gurus willing to help me out?

役に立ちましたか?

解決

You can use the "File" activity from the TFS Community Build Extensions to toggle the read-only flag on the file(s).

Alternatively you could create your own activity from their source.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top