Unable to scan .NET application using sonar scanner (sonarscanner.msbuild.exe version 4.6.1+)
I had to use the .NET framework scanner, since this application includes ASP code files.
I ran the scanner begin pre-processing (successful)
ran the build (successful, with warnings - MSBUILD version 15.6.82.30579)
SonarScanner for MSBuild 5.2.2
None of the below items apply.
1.The scanner was run with begin, build, end steps.
2. The version of MSBuild was 15.6.82.30579
3. it was all run from the same folder.
4.There is a GUID in the .sln folder for the project. I am not sure how to verify its validity, but here it is:
Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = “CMS”, “CMS”, “{420F4FED-2F28-4BE5-8CEA-9A6B9A57558B}”
…Here is the log snippet:
Using the .NET Framework version of the Scanner for MSBuild
Post-processing started.
13:31:09.154 The SonarScanner for 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)
13:31:09.157 Generation of the sonar-properties file failed. Unable to complete the analysis.
13:31:09.174 Post-processing failed. Exit code: 1
Any help would be greatly appreciated. I am able to scan it in using the CLI but that does not support C#. if it matters, this is commercial version on a dedicated server on a different machine. Configuration is valid, since I am able to scan using CLI.