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)
Colin
(Colin)
July 29, 2022, 9:17am
#2
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:
The short answer is very probably not. The longer answer with a couple of long-shot suggestions that you could try is as follows…
Our C#/VB rules are written as Roslyn analyzers, which means they need to be executed as part of the MSBuild phase by a Roslyn-based version of the compiler.
It’s been a long time since I looked at a web site project (and I don’t have an old enough version of VS installed to be able to create one to look at!), but I’ve had a look at some of the docs. A website proje…
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.
system
(system)
closed
August 5, 2022, 10:03am
#4
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.