Error when trying to run sonarscanner for my .netcore project

Hi @yapeutat,

Welcome to SonarSource community!

To use SonarScanner for .NET (formerly known as SonarScanner for MSBuild), you have the first right step, but you forgot to pass in your login token, hence the 10:47:05.173 The token you provided doesn’t have sufficient rights to check license. probably.

For the /d:sonar.login property, you need to pass your login token or your login name with the password. In other words, there are 2 ways to pick from:

  1. Login, click on your user icon in the top right-hand corner, click on My Account, click on Security and enter a token name, this will generate a login token, this value is what you put in for /d:sonar.login="2e9f236e256aa0251ed82ae596a871e296e99351":


    For more information, see Generating and Using Tokens.

  2. Use your usual login and password and make sure to pass these analysis parameters to the BEGIN step:
    ... /d:sonar.login="admin" /d:sonar.password="whateverpassword"

Joe