Search code examples
sonarqubesonar-runnersonarqube-scan

a required argument is missing: /key:[Sonarqube project key]


I am trying to run sonarqube analysis but I am getting the error

"a required argument is missing: /key:[Sonarqube project key]"
C:\Sonarqube\sonarqube-6.7\sonarqube-6.7\bin\sonar-scanner-msbuild-4.0.2.892\SonarQube.Scanner.MSBuild.exe begin /key: {projectkey} /name:{projectname} /version:{1.0} 

I have used the following url

I have tried using the "" in Key and Name but still get the same error

can anyone suggest how to do this?


Solution

  • There's a typo in the command line: the space between /key: and {projectkey}. This is what produces this error message.