title: TFS build is getting fail with Zero error with message - Process 'msbuild.exe' exited with code '1'
body: <p>I am building a solution file which is having multiple .csproj projects with the TFS(on premises with Build agent on the same network) <strong>MSBuild Task</strong> with version 14.0.
  As, This is not giving me any Error but getting fail with one message "<strong>Process 'msbuild.exe' exited with code '1'.</strong>"</p>
  
  <p><a href="https://i.stack.imgur.com/bBOOL.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bBOOL.jpg" alt="enter image description here"></a></p>
  
  <p>My MS Build Task:</p>
  
  <p><a href="https://i.stack.imgur.com/n854B.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/n854B.jpg" alt="enter image description here"></a></p>
  
  <p>Build Agent Configuration:</p>
  
  <ul>
  <li><p>VS community 2017</p></li>
  <li><p>VS Express 2015 Desktop/Web (update3)</p></li>
  </ul>
  
  <p>I found a link <a href="https://stackoverflow.com/questions/45150339/vsts-build-failing-with-error-process-msbuild-exe-exited-with-code-1">VSTS build failing with error &quot;Process &#39;msbuild.exe&#39; exited with code &#39;1&#39;.&quot;</a> but unable to understand the exact issue as even error is not coming.</p>
  
  <p><strong>Full Error log</strong></p>
  
  <blockquote>
    <p>302 Warning(s)
        0 Error(s) Time Elapsed 00:02:12.37 Exit code: 1</p>
    
    <p>Error record:</p>
    
    <p>Invoke-VstsTool : Process 'msbuild.exe' exited with code '1'.</p>
    
    <p>At
    E:\DevOps\agent\vsts-agent-win-x64-2.136.1_work_tasks\MSBuild_c6c4c611-aa2e-4c76-b606-5eaba2196824\1.120.0\ps_modules\MSBuildHelpers\InvokeFunctions.ps1:111
    char:13
    + Invoke-VstsTool -FileName $MSBuildPath -Arguments $arguments -Requir ...</p>
    
    <ul>
    <li><p>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</p></li>
    <li><p>CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException</p></li>
    <li><p>FullyQualifiedErrorId :  Microsoft.PowerShell.Commands.WriteErrorException,Invoke-VstsTool</p></li>
    </ul>
    
    <p>Script stack trace: at Invoke-Tool,
    E:\DevOps\agent\vsts-agent-win-x64-2.136.1_work_tasks\MSBuild_c6c4c611-aa2e-4a33-b606-5eaba26824\1.120.0\ps_modules\VstsTaskSdk\ToolFunctions.ps1:
    line 86</p>
    
    <p>at Invoke-MSBuild,
    E:\DevOps\agent\vsts-agent-win-x64-2.136.1_work_tasks\MSBuild_c6c4c611-aa2e-4a33-b606-5eaba26824\1.120.0\ps_modules\MSBuildHelpers\InvokeFunctions.ps1:
    line 111</p>
    
    <p>at Invoke-BuildTools,
    E:\DevOps\agent\vsts-agent-win-x64-2.136.1_work_tasks\MSBuild_c6c4c611-aa2e-4a33-b606-5eaba26824\1.120.0\ps_modules\MSBuildHelpers\InvokeFunctions.ps1:
    line 36</p>
    
    <p>at ,
    E:\DevOps\agent\vsts-agent-win-x64-2.136.1_work_tasks\MSBuild_c6c4c611-aa2e-4a33-b606-5eaba96824\1.120.0\MSBuild.ps1: line 43</p>
    
    <p>at , : line 1</p>
    
    <p>at , : line 22</p>
    
    <p>at , : line 18</p>
    
    <p>at , : line 1</p>
    
    <p>Exception:</p>
    
    <p>Microsoft.PowerShell.Commands.WriteErrorException: Process
    'msbuild.exe'  exited with code '1'.</p>
    
    <p>Process 'msbuild.exe' exited with code '1'.</p>
    
    <p>Processed: ##vso[task.logissue type=error]Process 'msbuild.exe' exited
    with code '1'.</p>
    
    <p>Leaving Invoke-VstsTool.</p>
    
    <p>Processed: ##vso[task.complete result=Failed] Leaving Invoke-MSBuild.</p>
    
    <p>Leaving Invoke-BuildTools.</p>
    
    <p>Leaving
    E:\DevOps\agent\vsts-agent-win-x64-2.136.1_work_tasks\MSBuild_c6c4c611-aa2e-4a33-b606-5eaba2196824\1.120.0\MSBuild.ps1.</p>
  </blockquote>
  
  <p>Thanks..!!</p>