I’m trying to setup sonarqube analysis for .Net application which is on .Net Core3.0.
SonarQube Version: 7.9 LTS
SonarQube Scanner for MSBuild 4.0.2
This Job is not using VS 2015 to build but with some command line batch executions.
I’m currently facing below issue while trying to perform somarqube analysis.
The SonarQube MSBuild integration failed: SonarQube was unable to collect the required information about your projects.
- The project has not been built - the project must be built in between the begin and end steps
- An unsupported version of MSBuild has been used to build the project. Currently MSBuild 14.0 upwards are supported
- The begin, build or end steps have not all been launched from the same folder
Generation of the sonar-properties file failed. Unable to complete SonarQube analysis.
15:53:38.051 Creating a summary markdown file…
15:53:38.058 Post-processing failed. Exit code: 1
WARN: Unable to locate ‘report-task.txt’ in the workspace. Did the SonarScanner succeeded?
ERROR: Execution of SonarScanner for MSBuild failed (exit code 1)
Previous steps failed the build.
Result is: FAILURE
Any suggestions are highly appreciated.