SonarScanner .NET (Framework) | Post-processing failed

The situation

Hello everyone, I have a website project I need to scan with the SonarScanner .NET because the “default” SonarScanner doesn’t include C#.

The problem

I am not been able to pass the post-processing phase of the SonarScanner .NET.

(The SonarScanner for MSBuild integration failed: SonarQube was unable to collect the required information about your projects.)

(Generation of the sonar-properties file failed. Unable to complete the analysis.)

What I have

  • Windows 10
  • .NET Framework 4.8
  • SonarQube Community Edition 9.5 (build 56709)
  • MsBuild 17.2.1+52cd2da31 per .NET Framework
  • SonarScanner for MSBuild 5.7.1

The logs

begin.txt (6.3 KB)
build.txt (16.9 KB)
end.txt (2.4 KB)

It looks like your project is being built by the aspnet_compiler, which doesn’t support running roslyn analyzers. Take a look at this answer here:

2 Likes

Thank you very much for the response.

Unfortunately in my case, I can’t procede with neither one of the proposed workarounds, but at least now I know why it isn’t working and can adapt to the situation.

I’m gonna scan all possible issues locally with the standard SonarQube scanner, and use the Azure DevOps integration with its scanner to fix the C# ones.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.