Sonar cloud C# scanner giving below issues

Hi, i am getting below error in my VSTS build and it is very random. I am using sonarcloud extention and i am running this on on-prem build server. Can you please help me analyse why this error is coming.

2018-08-22T14:43:23.4031938Z ##[error]The SonarQube MSBuild integration failed: SonarQube was unable to collect the required information about your projects.
Possible causes:
  1. The project has not been built - the project must be built in between the begin and end steps
  2. An unsupported version of MSBuild has been used to build the project. Currently MSBuild 14.0 and 15.0 are supported
  3. The begin, build and end steps have not all been launched from the same folder
  4. None of the analyzed projects have a valid ProjectGuid and you have not used a solution (.sln)
2018-08-22T14:43:23.4039018Z The SonarQube MSBuild integration failed: SonarQube was unable to collect the required information about your projects.
2018-08-22T14:43:23.4039789Z Possible causes:
2018-08-22T14:43:23.4042763Z   1. The project has not been built - the project must be built in between the begin and end steps
2018-08-22T14:43:23.4043737Z   2. An unsupported version of MSBuild has been used to build the project. Currently MSBuild 14.0 and 15.0 are supported
2018-08-22T14:43:23.4044550Z   3. The begin, build and end steps have not all been launched from the same folder
2018-08-22T14:43:23.4045401Z   4. None of the analyzed projects have a valid ProjectGuid and you have not used a solution (.sln)
2018-08-22T14:43:23.4258732Z Generation of the sonar-properties file failed. Unable to complete SonarQube analysis.
2018-08-22T14:43:23.4353092Z 20:13:23.434  Creating a summary markdown file...
2018-08-22T14:43:23.4442635Z ##[error]20:13:23.442  Post-processing failed. Exit code: 1
2018-08-22T14:43:23.4444186Z 20:13:23.442  Post-processing failed. Exit code: 1
2018-08-22T14:43:23.4783800Z ##[error]H:\Agent11\_tasks\SonarCloudPrepare_14d9cde6-c1da-4d55-aa01-2965cd301255\1.3.2\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe failed with return code: 1
2018-08-22T14:43:23.4908155Z ##[section]Finishing: Run Code Analysis

As you can see in the error message, the root cause can come from many places. Unless you provide more details on your setup, it’s going to be very difficult to help you troubleshoot this.

Hi @sagararora-gep,

Could you please provide the full log of the end step of the SonarCloud task (ideally with the sonar.verbose=true option set in the begin step)?

Also it could be useful for us to have the log of the build step.

Cheers,
Amaury

I have the same error. Have you solved this issue yet?