How To Get A File History In TFS Source Control Using Code

יום ראשון, יוני 14, 2009

A project I am doing these days requires me to get file history changesets using the API. Sounds like a simple task right? Apparently there is not a lot of reference to that in Google, so after almost throwing my computer out of the window (More than once I most admit) I found the answer. Add the following references to your using list:using Microsoft.TeamFoundation.Client; using Microsoft.TeamFoundation.VersionControl.Client;using System.Collections;using System.Windows.Forms; The example function is very simple it gets a change and shows message boxes of all the changesets that have a change for the specified file up to the change transferred to the method. Note:...