How to ensure that TFS clients has the latest version of a custom check in policy installed?

后端 未结 2 1407
陌清茗
陌清茗 2021-01-13 12:30

We implemented a custom check in policy, and selected it for one of our TFS project. If a TFS client does not have the policy installed, TFS will show an error message with

2条回答
  •  说谎
    说谎 (楼主)
    2021-01-13 12:47

    Finally I decided to use the workaround originally suggested:

    "One possible workaround could be to checkin the latest version number as a file to a project which can be accessed by anyone. The check in policy itself would read that file, compare the version with it's own version and generate a PolicyFailure if the version does not match."

    Works well.

提交回复
热议问题