which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
SonarQube 7.6, Scanner 4.7.1.2311 for MSBuild
what are you trying to achieve
I am trying to include my settings in the sonar-project.properties file in the root of my solution.
what have you tried so far to achieve this
I am adding the sonar.projectKey variable to my sonar-project.properties file, but when I run the scanner I get the following error:
A required argument is missing: /key:[SonarQube project key]
The contents of my sonar-project.properties file are:
What’s your analysis command, from what directory do you execute it, and is your sonar-project.properties (the name is case sensitive) located in that directory?
Sorry for a delayed reply. Apparently Scanner for MSBuild is using a different format of properties file - SonarQube.Analysis.xml. It is extremely confusing to have config files in different formats for different scanners. Especially when looking for a way to specify something in the config file.
Do you happen to know if there is a way to submit an enhancement request to the SonarQube team?