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

Support for project.assets.json #725

Closed KirillOsenkov closed 7 months ago

drewnoakes commented 7 months ago

If this file embedded in binlogs?

drewnoakes commented 7 months ago

https://www.nuget.org/packages/NuGet.ProjectModel

https://github.com/NuGet/NuGet.Client/tree/dev/src/NuGet.Core/NuGet.ProjectModel

KirillOsenkov commented 7 months ago

Yes I've been thinking things like "what is the chain of dependencies that results in this package being referenced by this project?", "which Nuget package caused this .dll reference or this file to be copied to output"?

KirillOsenkov commented 7 months ago

Some progress!

image

drewnoakes commented 7 months ago

Looking good! Could be interesting to list build files under packages too. That info is in the assets file.

KirillOsenkov commented 7 months ago

Yup, it is now able to search for files, and also show which dependency chain resulted in the package being included:

image