title: How to get list of all projects with versions in the azure DevOps server from WPF or Windows application
body: <p>I want to list and display all project files in Azure DeveOps server from a windows/WPF application.
  Ealier My application retrieve data from TFS server. Now our repository is changed and Now Azure devops server is used instead of TFS.
  I am looking for equivalent of below code which is used in TFS. I want to do same operation with Azure DevOps Server.</p>
  <p><strong>Sample Code to get all project files and objects from TFS</strong></p>
  <pre><code> Uri tfsUri;            
          string OutPutFolderDB, DirectoryNextTo, Path;
          tfsUri = new Uri(&quot;http://&quot; + serverURI + &quot;/testProjectCollection&quot;);
          var targettfs = TfsTeamProjectCollectionFactory.GetTeamProjectCollection(tfsUri);
          Microsoft.TeamFoundation.Server.ICommonStructureService stuctureService =
         targettfs.GetService&lt;Microsoft.TeamFoundation.Server.ICommonStructureService&gt;();
  
          Microsoft.TeamFoundation.Server.ProjectInfo[] projects = stuctureService.ListAllProjects();
          VersionControlServer vcs = targettfs.GetService&lt;VersionControlServer&gt;();
  </code></pre>
  <p>I would like to know similar kind of above code which is used in Azure devops server. My repository is git.</p>