Is there a Visual Studio Build Profiler?

后端 未结 3 1429
走了就别回头了
走了就别回头了 2021-02-07 06:09

My VS.NET 2008 solution is taking longer and longer to compile (ASP.NET 3.5 + ASP.NET MVC 2 + C#) and I am wondering if there is a way to know what project takes the longer to c

3条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-07 06:30

    You can use MSBuild Profiler to get a breakdown of how long each project and it's tasks are taking. It's a little old and doesn't seem to be supported but I've still found it very useful. Download and install from here then run as follows from the VS command line:

    MSBuild.exe MySolution.sln /l:MSBuildProfileLogger,MSBuildProfiler,Version=1.0.1.0,Culture=neutral,PublicKeyToken=09544254e89d148c
    

    When it finishes it will pop-up a GUI with a tree structure breakdown of your solution, containing the time it took to process each project and task.

提交回复
热议问题