How can I restrict a custom TFS checkin policy to be evaluated only on checkin? RRS feed

  • Question

  • I have created a custom TFS checkin policy that needs to parse and evaluate the source files during checkin.

    This can be a quite expensive process, especially if many files are part of the changeset.

    And, it only needs to be evaluated exactly once during the actual checkin.

    However, currently the framework calls the Evaluate method many times, even before a checkin is initiated by the user.

    For example, any time the Pending Changes window is displayed / updated the framework calls Evaluate.

    How can I restrict / avoid this?

    Friday, February 23, 2018 10:26 PM

All replies