wgnf / liz

liz (ˈlɪz) is a tool to extract license-information from your project/solution aimed on a fast and correct process. Whether it's via a dotnet-CLI-Tool, Cake-Addin or Nuke-Addon
MIT License
9 stars 0 forks source link

[FEAT]: Get package-references using the `project.assets.json` #154

Open wgnf opened 2 months ago

wgnf commented 2 months ago

Description of the feature/enhancement

The current approach to get all the package-references is done by using dotnet list package for a solution or project. Which worked great so far. But over at my company that approach broke when updating to .NET 8. We were using CPM with different files in differently scoped folders.

As a secondary approach parsing the project.assets.json would be cool.

Additional Information

To get all the packages including the transitive ones, there is a long list of all the packages that are needed. So that could be used.

For non-transitive, we could use the list of packages for the given project, and determine the actual resolved version from the long list. That should work.