© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•15mo ago•
3 replies
Elban

csc.exe takes 140 Seconds to build one specific Project

this here is from
dotnet build -bl
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
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?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Csc.exe exited error
C#CC# / help
2mo ago
error MSB6006: "csc.exe" exited with code -1073741819.
C#CC# / help
2mo ago
❔ how to export project to .exe
C#CC# / help
3y ago