I’m new on Sonar World, i work locally, with Sonar Scanner cli 5.0.1.3006 on Windows Server 2019 10.0 amd64, for analyze a c# project.
On my prompt type:
dotnet sonarscanner begin /k:“project key” /d:sonar.host.url=“localhost” /d:sonar.token=“token”
dotnet build C:\project.sln
dotnet sonarscanner end /d:sonar.token=“token”
For the first 2 command is all okay, but in the last returns me an error can u help me? I don’t understand why, becouse i have the same version of java, sonarqube, sonar scanner on my Windows 10 and works!
Hi,
Welcome to the community!
In general, we’re not fans of screenshots of logs. Next time it would be great if you’d copy/paste.
And in fact, there’s not a lot to go on in this screenshot. Could you provide the full text of the log?
Thx,
Ann
Hi Ann,
sure, attach the output of this command (dotnet sonarscanner end /d:sonar.token=“token”)
otuputdebug.txt (1.7 KB)
tell me if u need anothers info, thank u
Hi,
Uhm. Okay. That was pretty much the whole thing.
So now I need to ask for debug logs, redacted as necessary.
This guide will help you create them.
Thx,
Ann
Hi, i’m sorry, but i don’t find information about “Sensor” or “Coverage” i search in all output… in attach ther is the output of dotnet sonarscanner begin
with /d:sonar.verbose=true
outputVerbose.txt (7.9 KB)
Hi,
That looks like the log from the begin step. Can we also have the log from the end step?
Thx,
Ann
outputVerboseEndStep.txt (2.3 KB)
Hi, this is the output
Hi,
Thanks for the log. As I’m sure you’re aware, there’s not much more in this version. I’m going to call for help.
Ann
Hi, thank u for help, i think the problem is the path of sonar qube, becouse there is a user folder with special character (don’t ask me why xD) now i try to reinstall sonar qube in another user folder
Hello @Giuseppe - the logs from the end step that you provided don’t seem to be verbose, otherwise they would have “DEBUG” info inside.
Could you also share verbose msbuild logs?
Share the Scanner for .NET verbose logs
- Add
/d:"sonar.verbose=true"
to the command, e.g.dotnet sonarscanner begin /k:"MyProject" /d:"sonar.verbose=true"
- The important logs are in the
END
step
Share the msbuild detailed logs
dotnet build -v:d