title: Is there still a way to programmatically get the latest version of a TFVC repository in C#, VS2019?
body: <p>I'm attempting to build tools in C# to help automate part of the company I work for's build and deployment system. The most recent tool I've been assigned to is something to see if any members of a specific group of files in the TFS version control system have been changed on the server since the last release.</p>
  
  <p>To make sure that there weren't changes on the server that the machine this automation tool is running on simply hasn't found out about yet, I want to be able to perform within C# code something similar to the <a href="https://docs.microsoft.com/en-us/azure/devops/repos/tfvc/get-command?view=azure-devops" rel="nofollow noreferrer"><code>tf vc get</code></a> command from the command line interface to TFVC. I found several bits of documentation referring to this and similar questions being asked on Stack Overflow about how to do this, but they were all for VS2010 or earlier, and the APIs that they reference are no longer updated on the Microsoft website.</p>
  
  <p>In the more recent versions of Team Foundation Server, is there any way to programmatically invoke something that would perform something similar to the 'Get Latest Version' command from Visual Studio's Source Control Explorer? </p>
  
  <p><a href="https://i.stack.imgur.com/UKZO7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UKZO7.png" alt="Small censored screenshot of Source Control Explorer in TFS"></a></p>