Significant increase in build times

Hello @ddarmonAC and welcome to our community.

RE: how our analysis works, I encourage you to read this answer. To demistify a bit more our integration with MSBuild, also this answer.

RE: performance problem. We have a backlog of performance improvements to do (and we are doing them regularly). It may be due to a known issue or an unknown one. It would help us to learn more (and we could provide guidelines to help).

Could you please run the msbuild with /p:reportanalyzer=true /v:d to provide the time for each Roslyn analyzer?

And you can extract the time to analyze with this snippet after you download the logs:

dotnet build … -v:d -p:reportanalyzer=true > build_logs.txt

select-string -path “build_logs.txt ” -pattern “NOTE: Elapsed time may be less than analyzer execution time because analyzers can run concurrently.” -Context 5,30 > analyzer_times.txt

And share analyzer_times.txt with us.

Also, please share the logs from the SonarCloudAnalyze task with us.

Thanks,
Andrei

1 Like