且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在 TFS 中为某些用户注册自定义签入策略

更新时间:2023-12-01 23:42:40

正如其他人提到的,策略需要安装在客户端机器上才能工作.没有办法解决这个问题.但是,您可以在策略本身中检查进行签入的用户的身份和组成员身份,并在这种情况下跳过策略验证(始终返回一个空的 PolicyFailures 数组).

As others mention, the policy needs to be installed on the Client machine to work. There is no getting around that. You can, however, in the policy itself check the Identity and group membership of the user doing the check-in and skip the policy validation (always return an empty array of PolicyFailures) in that case.

我一直在制定这样的政策,但一直没有时间完成它.我一直在构建的策略与 TFS Power 工具中附带的 ConditionalPath 策略的工作方式相同.基本上,它包装了另一条(一组)规则并为其执行设置了条件.

I have been working on such a policy, but never found time to finish it. The policy I have been building works in the same way as the ConditionalPath policy that ships in the TFS Power tools. Basically it wraps another (set of) rules and places a condition on their execution.