Open KirillOsenkov opened 6 years ago
I just realised that apart from splitting at build time, it might also be (more?) feasible to do the splitting post build? That might depend on the availability of a binlog API parsing/writing library?
That should be easy. There is already an API to read all the records from a .binlog: StructuredLogger.dll from https://www.nuget.org/packages/Microsoft.Build.Logging.StructuredLogger
You can replay the .binlog into another logger, and filter to just the records that you care about (perhaps by some field on BuildEventArgs.BuildEventContext?)
Also there are various ways to convert a .binlog to a .buildlog (basically what the Structured Log Viewer does to display the tree). Once you have a .buildlog you can easily save a subtree into binary or XML format. It's all very flexible, let me know if you get stuck with any of it.
If the master build is building multiple solutions via MSBuild task, consider allowing to split out separate binlogs for each MSBuild invocation.
Does MSBuild task support an equivalent of
/bl
?Would be nice to right-click a node in the tree and say "Save subtree as a separate log"