We implemented our own validation policy and selected it for one of our TFS projects. If the TFS client does not have an installed policy, TFS will display an error message with installation instructions. This is all good. However, we have a problem when there is a new version of the check in politics.
It seems that TFS only enters the name of the policy, not its version.
Therefore, even if I delete the old policy link and add a new one, all clients that already have the old version installed can still use it. I would expect TFS to not allow the old version of validation to be used in politics.
How can we provide this?
One possible solution would be to check the latest version number in the form of a file for a project that anyone can access. The check itself in the policy will read this file, compare the version with its own version and generate a PolicyFailure if the version does not match.
Maybe there is an easier / better way?
source share