سؤال

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