TFS2010 - 有没有办法预先填充项目组
在我们店里,所有的开发人员都只读过代码。 每个人都被放入一个名为 TFSReader 的组中。
在 TFS 2005 中,每当我创建新项目时,我都必须将该组添加到 [Project]\Readers 组中。
我们现在正在寻求升级到 TFS2010,我们想知道 有没有办法配置 TFS 自动将 TFSReader 组放在 [Project]\Readers 下?
我应该搞乱 processTemplates 吗?
In our shop, all the developers have read only to the code.
Everyone has been put in a group called TFSReader.
In TFS 2005, whenever I create a new project, I have to add the group to the [Project]\Readers group.
We are now looking to upgrade to TFS2010 now and we're wondering
Is there a way to configure TFS to automatically put the TFSReader group under [Project]\Readers?
Should I be messing with the processTemplates?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
虽然据我所知,没有一种方法可以预先填充,但您可以做的是使用 tf perm 命令,编写脚本,然后在添加新项目时运行该命令。
在您的情况下,您会执行以下操作(从命令行):
这表示:“为组中的每个人授予从每个团队项目根目录开始的所有文件中对 TFS 集合的读取权限”
如果您想了解有关 tf 的更多信息perm 命令你可以在这里:
权限命令
While there isn't a way to pre-populate that I am aware of, what you can do is use the tf perm command, scripted out, and just run that whenever you add a new project.
In your case, you would do (from command line):
This says: "Give read permission to the TFS collection for everyone in the group in all files starting at the root of each team project"
If you want to read more about the tf perm command you can here:
Permission Command
所以事实证明流程模板是正确的选择。
我在msdn论坛上得到了答案。
http://social.msdn.microsoft.com/Forums/en-US/tfsgeneral/thread/108ad70b-2a4a-4ec4-b8e0-e41d72766484
我下载了流程模板,复制了一份并更改 GroupsandPermissions.xml 文件。
我添加了会员标签并上传了新流程。
它就像一个魅力!
So it turns out the process template was the right way to go.
I got an answer over at the msdn forums.
http://social.msdn.microsoft.com/Forums/en-US/tfsgeneral/thread/108ad70b-2a4a-4ec4-b8e0-e41d72766484
I downloaded the process template, made a copy and change the GroupsandPermissions.xml file.
I added the Member tag and uploaded the new process.
It worked like a charm!