Is it possible to maintain multiple properties files for a single MSBuild scan?

415 views Asked by At

I would like to maintain one generic properties file to, for example, contain the SonarQube login information. Each specific project would then have its own properties file. Is there a way to accomplish this? It seems that only one properties file is recognized.

I am running SonarQube v5.6.6

Thanks in advance.

1

There are 1 answers

4
Nicolas B. On

Per Scanner for MSBuild documentation :

  • you can add login information under the Scanner installation directory (hence common to all projects), @ scanner_install_dir\bin\SonarQube.Analysis.xml
  • project specific properties can then be passed via command line when executing the scanner
  • for very special cases (rarely needed), you can also set Additional Analysis Parameters