SonarScanner for .NET - Version string portion was too short or too long

Hello @csb and welcome to the SonarSource community.

Your problem seem very similar to Version string portion was too short or too long on sonarcloud - #7 by VuHuong , can you check this ?

Also:

  • Do you comply to the Scanner for MSBuild prerequisites. I see that your run the Scanner on Windows Server 2012 which is pretty old. I would not be surprised that the VS or MSBuild version is too old too.

Then, can you check:

  • Is your SonarQube URL correct ?
  • Is your token correct ?
  • Can you pass properties as /d:"sonar.host.url=https://sonarqube.myinstance.com" and /d:"sonar.login=f9f523ab24269907bc2d6b3daaca66e103e2b3abb" (double quotes exactly where mine are located, not like what you did)

If still not working, please send me again the scanner execution in debug mode (add /d:sonar.verbose=true)

Olivier

1 Like