When running a msbuild pipeline for a .net project containing sonarqube tasks, the pipeline permanently runs into a timeout, while other .net pipelines without the sonarqube taks are working fine.
Yes, there is a legacy “DAL” project which is build with EntitySpaces inside my solution. I’ll try the workaround from the issue after creating the requested binary log.
this a common issue, with Sonarqube and Build agents. For my team, we invested on a build server and built Build Agents as services, sorted the whole issue, the build agents are dedicated and not shared along apps, hosted agents are usually being shared, thats abad idea especially if you have CI/CD pipelines and Sonarqube scans
You could try a local build , and pass to MSBuild /p:reportanalyzer=true /v:d - doing this you will find out which rules are taking most of the time during the build and then disable those rules for your specific projects.
We are interested as well in what is taking long, so we will highly appreciate if you’ll share the debug logs with the analysis time (we have some open tickets related to performance and any additional info will help once we’ll start working on them)
@flyerwire both MSBuild and the C# compiler can spawn processes that keep running after the build has finished, which might be why a server reboot is required.
Could you try passing the following arguments to MSBuild to see if it makes a difference? /p:UseSharedCompilation=false /nodeReuse:false