title: Get latest changeset version number of a file from TFS programatically
body: <p>Using TFS SDK, how can one get the latest version number of a certain file?</p>
  
  <p>Right now I'm doing this:</p>
  
  <pre><code>VersionControlServer vcs = (VersionControlServer)_tfsServer.GetService(typeof(VersionControlServer));
  int LatestVersion = vcs.GetItem(change.Item.ServerItem).ChangesetId; //Get Latest Version of this item
  </code></pre>
  
  <p>However, this approach takes too long if I have lots of files to check. (From my test, it takes about a second for each item).</p>
  
  <p>Is there any other way to get the latest version number of a file (server item) from TFS?</p>
  
  <p>Thanks,</p>