문제

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