1

I am trying to deploy a custom policy in TFS2010. Since the deployment needs to be done in 2 steps,

1) update registry path "HKEY_LOCAL_MACHINE/Software/Microsoft/VisualStudio/9.0/TeamFoundation/SourceControl/CheckinPolicies"

2) Paste the custom policy dlls in to respective path on TFS server

Is there a way I can achieve this from a remote machine instead of logging on the TFS machine everytime just to deploy and test?

4

1 回答 1

1

这是完全可能的,但是您需要 TFS 管理员的帮助一次。他需要在您的 TFS 项目上集中激活自定义策略,否则您的签入操作不会触发自定义策略被激活。

  1. 创建您的自定义策略。
  2. 根据以下内容将其上传到您的项目版本控制树:http: //blogs.msdn.com/b/youhana/archive/2011/03/27/distributing-custom-check-in-policies-amp-wit-controls-using -团队成员.aspx
  3. 在您的团队中分发 TFS Powertools 以分发和同步您的自定义策略。
  4. 请求 TFS 管理员激活您的自定义策略。

对于您的情况,这是可以接受的情况吗?您将不再需要前往 TFS 服务器来激活自定义策略。

于 2011-09-13T20:49:39.103 回答