I’m successfully analyzing a number of .NET Core applications written in C# with SonarCloud, using a combination of passing command-line parameters to
dotnet-sonarscanner and setting some values via the Administration tab of SonarCloud. I wanted to make the configuration more transparent to all developers, so I want to move the settings out of Administration tab into the source code.
What is the best way to handle a large number of settings? In the past, I’ve used a
sonar-project.properties file, but that now errors out with SonarScanner for .NET. I’ve seen references to
SonarQube.Analysis.xml, but I think that’s only for server-level configuration, not project specific changes. There’s
.sonarcloud.properties, but I believe that’s just for automatic analysis.
If possible, I’d rather have a configuration file with the key-value settings instead of a rather long command with lots of parameters being passed to
I appreciate any help that can be provided.