Very slow .NET build times when SonarCloud enabled

I have enabled SonarCloud within an Azure DevOps pipeline which is building C# .NET. code, there are 40 dotnet build steps many of which take 4-5 minutes each so the build phase alone is taking 1 hour 45 minutes which is way too long.

Without SonarCloud enabled the entire build takes less than 20 minutes.

Is there anything I can do to speed this up, such as running these in parallel, are these build times typical or is there potentially a configuration issue somewhere.

Thanks,

James

Hey there.

I suggest starting here: