Record the time taken by each task when running the msbuild assembly

We have a long msbuild script that I am trying to speed up. Is there a way to force msbuild to record the time spent on each target?

I looked at the xml logger, but it just displays the total time.

Should I make my own registrar, or is there something built?

+3
source share
2 answers

It is actually quite easy, on the command line, just add this:

/consoleloggerparameters:PerformanceSummary
+10
source

There is also a useful msbuild argument when you want to analyze which specific project in a decision has been taken for a long time:

https://msdn.microsoft.com/en-us/library/ms164311.aspx

/detailsummary/ds , .

: https://blogs.msdn.microsoft.com/visualstudio/2010/03/05/msbuild-4-detailed-build-summary/

+1

Source: https://habr.com/ru/post/1721186/


All Articles