KirillOsenkov / MSBuildStructuredLog

A logger for MSBuild that records a structured representation of executed targets, tasks, property and item values.
MIT License
1.41k stars 188 forks source link

Evalutation node sort by id #761

Closed workgroupengineering closed 4 months ago

workgroupengineering commented 4 months ago

I would like to suggest the possibility of sorting the child nodes of the Evaluation node by id order instead of alphabetical order.

KirillOsenkov commented 4 months ago

They're sorted by name first, then by id, but I can add sort by id too.

KirillOsenkov commented 4 months ago

just curious, why do you need this? what is the scenario?

you can search for id:42 to find a specific eval and all builds that use it

workgroupengineering commented 4 months ago

If I haven't misunderstood, id represents the order in which the projects are evaluated. If you need to track how a property changes, it's easier if the projects are in id order. The ideal would be to view the projects by dependency but it would be more complicated.

KirillOsenkov commented 4 months ago

No, the id is random, and multiple projects can be evaluated and built in parallel. The value of properties is not shared across evaluations, each evaluation derives its own values for properties and items and they do not impact other evaluations in any way.

KirillOsenkov commented 4 months ago

You can right-clickon any project or evaluation and click Preprocess. This will show the XML with all imported projects inlined in one flat list. This is how each evaluation reads it.