title: Teamcity fails to fetch files from Azure Devops
body: <p>I am very new to the TeamCity and want to learn auto build and deploy applications from online TFS. My project has windows and web apps developed in .NET only.</p>
  
  <p>I have no code on my machine and directly using online TFS as source. 
  VCS Root setting works fine and connection gets successful.
  In the Build Step, I am using Build as the first step using MSBuild. When I click on RUN  it starts the process and shows the first step as UPDATING SOURCES. In the code checkout directory, it creates only directories and there is no even single source code file though I can see all code files in TFS online. After this step it shows error: </p>
  
  <pre><code>Failed to start MSBuild.exe. Failed to find project file at path: 
  C:\TeamCity\buildAgent\work\740b9db587af8795\ProjectName.sln
  </code></pre>
  
  <p><code>ProjectName.sln</code> file exists in TFS at <code>https://ProjectName.visualstudio.com/DefaultCollection/$/Main/MainBranch</code></p>
  
  <p><img src="https://i.stack.imgur.com/4u7v3.png" alt="See the MSBuild details as below"> </p>
  
  <p><img src="https://i.stack.imgur.com/9RLAq.png" alt="Also VCS Root details are as below:"></p>
  
  <p>I am not getting what things I am missing. I googled much about but I wasn't able to get what is missing here. What extra steps I need to do to get this working.</p>
  
  <p>Appreciate your help.</p>
  
  <p><em>FI: Teamcity Version 2018.1.3 (build 58658). Teamcity server and build agent are on the same machine: Win 10.</em></p>
  
  <p><strong>Edited:</strong>
  Below is screenshot with the RUN process.
  <a href="https://i.stack.imgur.com/vgMK4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vgMK4.png" alt="enter image description here"></a></p>
  
  <p><strong>Teamcity-Activities.log</strong>
  [2019-01-07 19:44:23,906]   INFO - s.buildServer.ACTIVITIES.AUDIT - build_type_edit_settings: "MLD / Main {id=Mld_Main, internal id=bt2}" build configuration settings were edited ("version before: 45, version after: 46") by "'admin'(AB) {id=1}" with comment "runners of 'Main' build configuration were updated"</p>
  
  <p>[2019-01-07 19:44:34,460]   INFO - s.buildServer.ACTIVITIES.AUDIT - build_add_to_queue: Build BUILD_PROMOTION{id=52} was added to queue by "'admin'(AB) {id=1}"</p>
  
  <p>[2019-01-07 19:44:34,466]   INFO - tbrains.buildServer.ACTIVITIES - Build added to queue; Queued build {Build promotion {promotion id=52, configuration={id=Mld_Main, internal id=bt2}, queued}, triggered by "'admin'(AB) {id=1}" (##userId='1' type='user')}</p>
  
  <p>[2019-01-07 19:44:34,539]   INFO - tbrains.buildServer.ACTIVITIES - Build started; MLD / Main {id=Mld_Main, internal id=bt2} #25 {promotion id=52, agent="Agent-Name" {id=1}, triggered by "'admin'(AB) {id=1}" (##userId='1' type='user'). Started 2019-01-07 19:44:34.514, running}</p>
  
  <p>[2019-01-07 19:55:38,847]   INFO - tbrains.buildServer.ACTIVITIES - Finished build MLD / Main {id=Mld_Main, internal id=bt2} #25 {promotion id=52, agent="Agent-Name" {id=1}, triggered by "'admin'(AB) {id=1}" (##userId='1' type='user'). Started 2019-01-07 19:44:41.748, finished. Status "FAILURE 'Cannot start build runner; exit code -42 (Step: Build (MSBuild))'"}</p>
  
  <p><strong>Teamcity-tfs.log</strong></p>
  
  <p>[2019-01-07 19:42:03,434]   INFO - .vcs.tfs.java.TfsJavaWebRunner - Starting TFS out of process application</p>
  
  <p>[2019-01-07 19:42:03,439]   INFO - .vcs.tfs.java.TfsJavaWebRunner - TFS out of process application has been started</p>
  
  <p>[2019-01-07 19:42:08,312]   INFO - .vcs.tfs.java.TfsJavaWebRunner - Web server started at <a href="http://localhost:64729/api/commands" rel="nofollow noreferrer">http://localhost:64729/api/commands</a></p>
  
  <p>[2019-01-07 19:42:08,312]   INFO - gers.vcs.tfs.TfsTimeoutWatcher - TFS out of process app idle timer has started</p>
  
  <p>[2019-01-07 19:42:25,586]   INFO - .vcs.tfs.java.TfsJavaWebRunner - TFS java web command has finished: TestConnection $/Main/Feature -s="https://ProjectName.visualstudio.com/" -p="*******", completed in 22.140 second(s)</p>
  
  <p>[2019-01-07 19:43:00,661]   INFO - .vcs.tfs.java.TfsJavaWebRunner - TFS java web command has finished: GetCurrentVersion $/Main/Feature -s="https://ProjectName.visualstudio.com/" -p="*******", completed in 1.607 second(s)</p>
  
  <p>[2019-01-07 19:44:35,894]   INFO - .vcs.tfs.java.TfsJavaWebRunner - TFS java web command has finished: GetCurrentVersion $/Main/Feature 31529 -s="https://ProjectName.visualstudio.com/" -p="*******", completed in 1.293 second(s)</p>