Using the TFS SDK, how to get the latest version number of a specific file?
Now I am doing this:
VersionControlServer vcs = (VersionControlServer)_tfsServer.GetService(typeof(VersionControlServer)); int LatestVersion = vcs.GetItem(change.Item.ServerItem).ChangesetId; //Get Latest Version of this item
However, this approach takes too much time if I have many files to check. (From my test, it takes about a second for each item).
Is there any other way to get the latest file version number (server element) from TFS?
Thanks,
source share