title: API - How to programmatically merge a list of merge candidates returned by .VersionControlServer.GetMergeCandidates?
body: <p>I am creating a clone of Default Merge Window, to add a feature. </p>
  
  <p>I already have a Merge candidates in a grid from command below: </p>
  
  <pre><code>  MergeCandidate[] candidates = tfs.GetMergeCandidates(edtSelectedSource.Text, cbxTargetBranchs.Text);
  </code></pre>
  
  <p>Now, the user selected 1 or more candidates and I need to merge them. </p>
  
  <p>But the TFS API VersionControl.Merge requires source path and target path. </p>
  
  <p>At first, my question, I need to iterate each candidate and merge each file of its changesets, one by one ? 
  Second, how could I obtains the target path from a changeset ? </p>