title: How to check out & check in the file from TFS using C# code?
body: <p>I am trying to create a Window Form Application which checks out, make some edits to the file &amp; checks in the file in TFS.</p>
  
  <p>I am able to do these operation by using below code. Only problem I am facing is in getting the <code>tf.exe</code> path dynamically. I don't want the path of <code>tf.exe</code> to be hard coded in solution. The <code>tf.exe</code> which I am trying to open is in Visual Studio 2017 folder.</p>
  
  <pre><code>foreach (string path in FilePaths)
  {
    var proc = new Process
    {
      StartInfo = new ProcessStartInfo
      {
         FileName = @"C:\Program Files (x86)\Microsoft Visual Studio 
         14.0\Common7\IDE\tf.exe",
         Arguments = "checkout " + path,
         UseShellExecute = false,
         RedirectStandardOutput = true,
         CreateNoWindow = true
      }
    };
   proc.Start();
  }
  </code></pre>
  
  <p>The path provided in <code>FileName</code> should be dynamically fetched.</p>