Simon N
Simon N

Reputation: 37

CommitCheckinEventHandler TFS

I am trying to automate versioning on SSRS reports. This involves having a visible text string with a version number on it on each report. I want to link this string to the TFS label and ensure that the string is updated with each check in.

We use TFS2010 as our source control. When a report is checked in I want to run an application to read the report, update the version number if it is the same as the previous version number and check in the new version again, if necessary, and label the report with the version number.

I can write a C# consol app that will check out the previous version of the report - get the version number from our arbitrary place for it, compare it to the latest checked in version and update and check it in again with an appropriate label.

What I can't work out how to do is to fire this script off. (and where it will be hosted). I am aware of the TFS CommitCheckinEventHandler but can't see how to register for it - has anyone any suggestions?

Upvotes: 0

Views: 138

Answers (2)

Aghilas Yakoub
Aghilas Yakoub

Reputation: 29000

Firstly you must learn to develop on Workflow Foundation, and so develop your specific activity, secondly create specific processus template based on sequential workflow, and you finish by adding your activity in your template process (Your workflow). It's best practise

Upvotes: 0

Dylan Smith
Dylan Smith

Reputation: 22255

I'd suggest creating a TFS Build that fires on each Check-In (Continuous Integration Build). From the build you can call your console app, or run any other custom code you desire.

Upvotes: 1

Related Questions