Closed MarkKharitonov closed 2 years ago
Adding $time is very limited right now, so you can only do that for simple results.
If you want to filter projects that have a Csc task you can search for $csc project(filter for projects goes here)
Yes, I am aware. But the question is in general about projects. If we could filter projects by targets executed by them (really, not just skipped) then we could combine it with $time
and get really useful insights.
Yes, there's an open issue to get $time to work with all search results and in more circumstances: https://github.com/KirillOsenkov/MSBuildStructuredLog/issues/534
As always, the current workaround is to write a simple console tool that reads the binlog programmatically and does what you want using the API.
Got it. Thanks.
E.g., when filtering by
$project
we can get something like that:These are all project nodes alright, but the problem is that the same project was invoked many times with different targets. I am interested in the invocations associated with the specific target.
Suppose I want to see all the project nodes that correspond to the Build target? Or better - Csc task. Because Build target may have been skipped.
I can try to view the Build target alone:
Alas:
To see the projects that were actually built one can search for
$csc
:However, the filter is for the task nodes, not projects and so if I want to stick
$time
, then it would measure the task duration, not the project.Is there a way to do what the title asks?