Dotnet sonarscanner end - The syntax of the command is incorrect

I’ve developed a.Net Core application using VS2019.
using SonarScanner for MSBuild 4.8
Pre-processing works fine - please see logs as belwo
SonarScanner for MSBuild 4.8
Using the .NET Core version of the Scanner for MSBuild
Pre-processing started.
Preparing working directories…
20:53:52.384 Updating build integration targets…
20:53:52.484 Fetching analysis configuration settings…
20:53:53.664 Provisioning analyzer assemblies for cs…
20:53:53.666 Installing required Roslyn analyzers…
20:53:53.815 Pre-processing succeeded.

then restore nuget packages by - dotnet restore - successful

then build the project dotenet build - successful

now last end commmand - dotnet sonarscanner end
Logs are as below -
Post-processing started.
Calling the SonarQube Scanner…
The syntax of the command is incorrect.
The SonarQube Scanner did not complete successfully
20:54:59.261 Post-processing failed. Exit code: 1

running the begin command with - dotnet sonarscanner begin /k:APIName /d:sonar.host.url=https://url.com

any help !! have been trying for many hours now.

  • what is the version of SQ?
  • what is the version of the SQ Scanner for MSBuild you are using?

  • what is the version of MSBuild you are using?

  • did you read https://docs.sonarqube.org/latest/analysis/scan/sonarscanner-for-msbuild/ ?

  • are you running all commands from the same folder?

  • please attach in a file the full verbose output of the command (please run SonarScanner.MSBuild.exe begin /k:"MyProject" /d:sonar.verbose=true as the begin step, and please attach the output of END step)