如何从远程计算机在 TFS 中部署自定义策略

发布于 2024-11-06 23:30:44 字数 292 浏览 5 评论 0 原文

我正在尝试在 TFS2010 中部署自定义策略。由于部署需要分两步完成,

1) 更新注册表路径 “HKEY_LOCAL_MACHINE/Software/Microsoft/VisualStudio/9.0/TeamFoundation/SourceControl/CheckinPolicies”

2) 将自定义策略 dll 粘贴到 TFS 服务器上的相应路径

有没有办法可以从远程计算机实现此目的,而不是每次都登录 TFS 计算机来部署和测试?

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

忘羡 2024-11-13 23:30:44

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

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

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

This is totally possible, BUT you need the help of your TFS administrator once. He needs to activate the custom policy on your TFS project centrally, otherwise your check-in actions do not trigger the custom policy to be activated.

  1. Create you custom policy.
  2. Upload it to your projects version control tree according to: http://blogs.msdn.com/b/youhana/archive/2011/03/27/distributing-custom-check-in-policies-amp-wit-controls-using-team-members.aspx
  3. Distribute TFS Powertools in your team to distribute and sync your custom policies.
  4. Ask the TFS administrator to activate your custom policy.

Is this an acceptable scenario for your situation? You will never have to go to the TFS server to activate the custom policy anymore.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文