The SonarScanner for MSBuild integration failed: SonarQube was unable to collect the required info

The SonarQube MSBuild integration failed: SonarQube was unable to collect the required information about your projects.
Possible causes:
pool:
vmImage: ‘macOS-12’

Help : Version: 5.18.4. This task is not needed for Maven and Gradle projects since the scanner should be run as part of the build.

More Information

/usr/local/bin/dotnet /Users/runner/work/_tasks/SonarQubePrepare_15b84ca1-b62f-4a2a-a403-89b77a063157/5.18.4/dotnet-sonar-scanner-msbuild/SonarScanner.MSBuild.dll end
SonarScanner for MSBuild 5.15
Using the .NET Core version of the Scanner for MSBuild
Post-processing started.
##[error]14:57:51.506 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)
    14:57:51.506 The SonarScanner for MSBuild integration failed: SonarQube was unable to collect the required information about your projects.
    Possible causes:
  5. The project has not been built - the project must be built in between the begin and end steps
  6. An unsupported version of MSBuild has been used to build the project. Currently MSBuild 14.0.25420.1 and higher are supported.
  7. The begin, build and end steps have not all been launched from the same folder
  8. None of the analyzed projects have a valid ProjectGuid and you have not used a solution (.sln)
    14:57:51.506 Generation of the sonar-properties file failed. Unable to complete the analysis.
    ##[error]14:57:51.513 Post-processing failed. Exit code: 1
    14:57:51.513 Post-processing failed. Exit code: 1
    ##[error]The process ‘/usr/local/bin/dotnet’ failed with exit code 1
    Finishing: Run SonarQube Analysis

Have you checked the 8 possible causes listed in the error message? How is your GitHub action configured? Feel free to share your full YAML here.