title: TFS API - How to get project builds from a dedicated build server
body: <p>I'm developing a software to return all builds of a TFS project stored in a collection. The particularity of the current TFS infrastructure is the build server. It's a dedicated server (remote server and used only for building). So the third line of the following code is not working for me because in my case, the build "service" is not located on the TFS server directly :</p>
  
  <pre><code>Uri uri = new Uri("urlToTFS");
  TfsConfigurationServer tfs = TfsConfigurationServerFactory.GetConfigurationServer(uri);
  IBuildServer buildServer = tfs.GetService&lt;IBuildServer&gt;();
  </code></pre>
  
  <p>Do you guys have any idea to instance a build server object from a dedicated build server ? By providing the build server name or by getting a property of the TFS server ?</p>
  
  <p>Thank you in advance.</p>