Search code examples
c#.netsonarqube

Sonarqube.project.properties file not allowed


I have a simple C# Hello World project which I am trying to do Code Quality analysis with SonarQube.

dotnet C:\git\itergo\sonar\sonar-scanner-msbuild-4.7.1.2311-netcoreapp2.0\SonarScanner.MSBuild.dll end throws an error.

sonar-project.properties files are not understood by the SonarScanner for MSBuild. Remove those files from the following folders: C:\git\sonar_test\samples\core\console-apps\HelloMsBuild 09:24:17.089 Post-processing failed. Exit code: 1


Solution

  • You can pass parameters to the SonarScanner for MSBuild either on the command line or in the SonarQube.Analysis.xml XML settings file as described in the docs.