I am facing same kind of issue, I am doing following steps:
1] I am doing the begin step and it works.
2] I am doing build the project and it return 0 errors.
3] When I am doing the end step it return
SonarScanner for MSBuild 4.7.1
Using the .NET Core version of the Scanner for MSBuild
Post-processing started.
The SonarQube MSBuild integration failed: SonarQube was unable to collect the required information about your projects.
Possible causes:
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.25420.1 and higher are supported.
The begin, build and end steps have not all been launched from the same folder
None of the analyzed projects have a valid ProjectGuid and you have not used a solution (.sln)
Generation of the sonar-properties file failed. Unable to complete SonarQube analysis.
16:18:48.928 Post-processing failed. Exit code: 1
Also, I am attaching the sonarcube zip file. Please let me know how I can resolve this error. .sonarqube.zip (70.4 KB)
Are you building a single MSBuild project, or a solution?
Try building the project with more verbose MSBuild logging turned on e.g. pass -v:detailed in your donet build command. Does the output contain any messages starting with “Sonar:”?
All of the commands need to be run from the same directory.
It looks like you are using a normal command prompt. Use the Developer Command prompt for Visual Studio 2017 instead. It is configured to add msbuild.exe to the path, so you don’t need to change directory.