Hi,
I would like to analyze my asp.net c#(framework 3.5) using sonar cube & sonar scanner
i am trying to do with the following
sonarqube-7.2.1
sonar-scanner-MSBuild-4.3.1.1372-net46
generated key and followed the given commands, while executing ms build command I am getting the following exceptions.
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 and 15.0 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.
15:31:56.2 Creating a summary markdown file…
15:31:56.203 Post-processing failed. Exit code: 1
please let me know is possible to analyze .net framework 3.5 projects using sonar cube, if yes please provide supporting sonar cube, sonar scanner & ms build.
Thank you very much for your reply
I have followed the following steps.
created a project in sonar cube via front end and generated a key after that follows
1.full path of \SonarScanner.MSBuild.exe begin /k:“key” /d:sonar.host.url=“http://localhost:9000” /d:sonar.login=“ff324570775526ec30a96bb1eb8b3a50bd6b4417”
2.step2
& ‘C:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe’ /t:Rebuild
until step 2 everything ok and build completed shows.
3. path to SonarScanner.MSBuild.exe end /d:sonar.login=“ff324570775526ec30a96bb1eb8b3a50bd6b4417”
after executing the 3rd step its getting the above pasted exception,
used versions are
sonarqube-7.2.1
sonar-scanner-MSBuild-4.3.1.1372-net46
and I checked in .sonarqube\out\ProjectInfo.log - {none} displayed under every header ie,
Product projects
Thank you for all the details. As you already noticed there are no projects found (and logged in ProjectInfo.log) and this might be a problem with the begin step.
Would it be possible to run the begin step again with verbose logging enabled /d:sonar.verbose=true and attach the logs?