How to construct the Team System Web Access 2005 URL to a file in version control

Buck Hodges

Grant Holliday asked for an explanation of how a Web Access URL should be constructed to for a file in TFS version control, similar to the work item links explained in the TSWA 2005 FAQ.  Hakan responded with the details, which are shown below.


ItemData is the HtmlEncoded form of the query string, such as “id=10&cs=-1”

  • id: the item ID of the item in source control (you need to know this instead of the file path)
  • cs: changeset number (-1: latest)

For example, if the file id is 151611,

    HtmlEncode(“id=151611&cs=-1”) -> “id%3D151611%26cs%3D-1”

So the URL would then be

We’re planning to provide more friendly URLs in a future version, similar to the wi.aspx approach.


Leave a comment

Feedback usabilla icon