Github with CircleCI to run analysis for SonarCloud.
Currently using SonarScanner for MSBuild 5.12
We’re trying to understand how - from the repository itself - can we disable automatic analysis that is on-by-default in sonarcloud with a .NET project. For Java projects we can just have a sonar-project.properties file in the base directory of the repository. Is there a similar method for the MSBuild scanner to disable automatic analysis?
SonarScanner for MSBuild 5.12
Using the .NET Core version of the Scanner for MSBuild
Post-processing started.
03:50:44.998 sonar-project.properties files are not understood by the SonarScanner for MSBuild. Remove those files from the following folders: /root/project
03:50:44.998 Post-processing failed. Exit code: 1
Exited with code exit status 1
CircleCI received exit code 1
Sorry, this got lost (our default view of topics we should look at include topics with no replies… when somebody replies to their own post it’s less visible).
I’ve flagged this for attention because I know it came up after Automatic Analysis for .NET was released.
In order to turn OFF the Automatic Analysis you need to do the following:
Go to the project tab → Administration → Analysis Method, and at the top you will find a toggle to enable/disable Automatic Analysis.
Also if there is a sonar-project.properties file in your repo root, the Automatic Analysis will be set to OFF when you add the project to SonarCloud.