title: SonarQube Scanner for Jenkins -The SonarQube MSBuild integration failed: SonarQube was unable to collect the required information about your projects
body: <p><strong>Install Info is...</strong><br>
  sonarqube-6.7.1 | sonar-scanner-3.0.3.778 | sonar-scanner-msbuild-4.0.2.892| msbuild 14 | Java SE Development Kit 8 | .NET Framework 4.6.2</p>
  
  <p>And I made windows batch file to build and scan(sonar). but some projects are ok. but some projects are failed.
  <strong>batch file is...</strong></p>
  
  <blockquote>
    <p>step 1 . SonarQube Scanner for MSBuild - Begin Analysis</p>
    
    <p>step 2 . call "C:\Program Files
    (x86)\Jenkins\workspace\CSS_SQ\trunk\Build\build.bat"</p>
  </blockquote>
  
  <p>Our Build.bat is customized, I have tried only use Build.bat not include SonarQube, and it was working fine.</p>
  
  <blockquote>
    <p>step 3 . SonarQube Scanner for MSBuild - End Analysis</p>
  </blockquote>
  
  <p><strong>error message is...</strong>      </p>
  
  <p>C:\Program Files (x86)\Jenkins\workspace\CSS_SQ>exit 0 
  [CSS_SQ] $ "C:\Program Files(x86)\Jenkins\tools\hudson.plugins.sonar.MsBuildSQRunnerInstallation\SonarQube_Scanner_for_MSBuild\MSBuild.SonarQube.Runner.exe" end /d:sonar.login=****** ********<br>
  SonarQube Scanner for MSBuild 4.0.2<br>
  Default properties file was found at C:\Program Files(x86)\Jenkins\tools\hudson.plugins.sonar.MsBuildSQRunnerInstallation\SonarQube_Scanner_for_MSBuild\SonarQube.Analysis.xml<br>
  Loading analysis properties from C:\Program Files (x86)\Jenkins\tools\hudson.plugins.sonar.MsBuildSQRunnerInstallation\SonarQube_Scanner_for_MSBuild\SonarQube.Analysis.xml<br>
  Post-processing started.</p>
  
  <blockquote>
    <p>The SonarQube MSBuild integration failed: SonarQube was unable to
    collect the required information about your projects. Possible causes:<br>
      1. The project has not been built - the project must be built in between the begin and end steps<br>
      2. An unsupported version of MSBuild has been used to build the project. Currently MSBuild 14.0 upwards are supported<br>
      3. The begin, build or end steps have not all been launched from the same folder  </p>
  </blockquote>
  
  <p>Generation of the sonar-properties file failed. Unable to complete SonarQube analysis.<br>
  14:36:16.988  Creating a summary markdown file...<br>
  14:36:16.989  Post-processing failed. Exit code: 1<br>
  ERROR: Execution of SonarQube Scanner for MSBuild failed (exit code 1)<br>
  Finished: FAILURE</p>
  
  <p>About the Possible causes, I have checked 1 and 2 ,it's correct,but I am not sure for 3. I am guessing the .sonarqube file should be in the same folder with .sln file, then when I set the batch files I need to set the path in Additional arguments column. But I can't find any clue to set that yet. What makes this error message? and How should I do?</p>