Log the time taken in each task when running a msbuild build

msbuild

Solution

Its actually quite easy, in the command line, just add this:

/consoleloggerparameters:PerformanceSummary

Problem

We have a long-running msbuild script that I'm trying to speed up. Is there a way to get msbuild to log the time spent in each target? I've had a look at the xml logger, but it just outputs the total time. Would I have to make my own logger, or is there something built in?

Original source