SonarCloud is taking more time

To get the build verbose output, you need to:

Like the Troubleshooting guide says, please run with reportanalyzer:

  • MsBuild.exe /t:Rebuild /p:reportanalyzer=true /v:d
    to the DotNetCoreCLI command. You can read the documentation from Microsoft on how to pass additional parameters to the build command.

I see that you run the build multiple times - please read in the Troubleshooting .NET performance problems guide:

Make sure you do not run the analysis twice

And I see you have multiple DotNetCoreCLI commands - why do you have this?