About the Team Foundation Server File Sync Service
This solution was developed to address the need to automatically propagate specific files in the Team Foundation Server version control to a predefined path. Both "normal" UNC or local machine paths (e.g. "\\server1\project" or "c:\sc\server1\project"), and Sharepoint destinations are supported (the latter being expressed as only a UNC path, such as "\\ SERVER\sites\ Sitename\ Document Library").
Latest News
Steps
- Install the Web Service on web server with an app pool using a TFS service account (see Install Instructions
- Use BISUBSCRIBE.EXE which is a command line that ships with the TFS AT server tools or the EventSubscriber UI located at http://www.gotdotnet.com/codegallery/codegallery.aspx?id=6da8d4eb-f456-4e22-9a73-851c7341cff4
Web Service Details
This web service receives the event XML from the TFS and synchronizes the target path accordingly. It's actions fall under two categories: file creation (copy) and file deletion. The event XML received from the TFS is grouped as a changeset, and can contain one or more items that have been processed by source control - one file may have been updated, another deleted, and yet another one added in the same changeset, for instance. Each change in the set is compared to the set of predefined filters (defined in ./App_Data/PathFilters.xml) - if a given change matches all of the criteria listed in a <filter /> node (from the PathFilters.xml file), that item is acted on, and the associated target path is affected (file copy or delete, depending on the item's ChangeType).
|