Error while running Project Analysis

SonarScanner for MSBuild 5.13.1
Using the .NET Core version of the Scanner for MSBuild
Post-processing started.
19:07:10.89 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)
    19:07:10.898 Generation of the sonar-properties file failed. Unable to complete the analysis.

Hey there.

  • Have you eliminated all the possible causes that are listed?
  • I would suggest sharing the full logs from your build/analysis

Yeah I have tried all possible ways.
Found one thing, MSBuild.exe not recognised as an internal or external command while running the .Net Framework