I’m trying to scan a .NET 4.8 project (<100K LOC) using github action. There are no errors, but the “Build and analyze” step is taking hours. The only thing I’ve spotted in 700 lines of logs is a failed build:
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(3374,5): warning MSB5021: Terminating the task executable "lc" and its child processes because the build was canceled.
Done Building Project "D:\a\aat\aat\XXX\XXX.sln" (Rebuild target(s)) -- FAILED.
Done Building Project "D:\a\aat\aat\XXX\src\YYY\YYY.csproj" (Rebuild target(s)) -- FAILED.
Build FAILED.
However, I don’t know if this is what caused the long duration and there’s no indication to what cause the build to fail. Please, how can I troubleshoot ?
If you remove .\.sonar\scanner\dotnet-sonarscanner begin and .\.sonar\scanner\dotnet-sonarscanner end, do you still encounter the build failure or long duration?
Yes, it seems the problem persists. I’ve added the reportanalyzer property, and it seems that the compiler is stuck processing a licx file. I’ve no idea why and, unfortunately, I don’t have time to debug it. It’s frustrating as it works perfectly in VS.