C#C
C#14mo ago
Elban

csc.exe takes 140 Seconds to build one specific Project

this here is from dotnet build -bl

18>       17 ms  CallTarget                                 3 calls
18>       17 ms  CheckForDuplicateItems                     3 calls
18>       26 ms  GenerateDepsFile                           1 calls
18>       34 ms  ResolvePackageFileConflicts                1 calls
18>       54 ms  MSBuild                                    4 calls
18>      244 ms  ResolveAssemblyReference                   1 calls
18>    143783 ms  Csc                                        1 calls


the csc took 140ms to build a specific project, while other projects run fine

it has no special dependencies and analyzer, it only has LoggerMessage Source Generator


How can I debug what takes so long to build?
Was this page helpful?