Trying to publish sonarqube results in Community edition 9.6

Hi everyone,

I have installed the scanner for msbuild and i successfully start my project using SonarScanner.MSBuild.exe begin /k:"***" /"***" /d:sonar.login="****"
and then go with msbuid.exe “my filename.csproj” /t:Rebuild and it successfully completes

The error shows up when i try to end the scanner using SonarScanner.MSBuild.exe end /d:sonar.login="****"

error shows up :SonarScanner for MSBuild 5.13
Using the .NET Framework version of the Scanner for MSBuild
Post-processing started.
02:42:40.589 The SonarScanner for 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.25420.1 and higher 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)
    02:42:40.619 Generation of the sonar-properties file failed. Unable to complete the analysis.
    02:42:40.638 Post-processing failed. Exit code: 1

All the scanning is started from same folders and trying locally from build machine .Can anyone help on same…



Welcome to the community!

What’s your version of MSBuild?