tomchavakis / nuget-license

.NET Core tool to print or save all the licenses of a project
Apache License 2.0
279 stars 82 forks source link

Include packages from project references #202

Open garcipat opened 11 months ago

garcipat commented 11 months ago

I tried to get all project licenses from a project including the other project this references.

I have my MyApp.Host project that ahs a reference on MyLib that references NewtonSoft.Json. Then I want NewtonSoft.Json also listed when getting licesnes of MyApp.Host.

Should this already be? Is this currenlty possible?

We have multiple projects in the monorepo that are using only selectivly other projects and would like to have a report on a per application base.

Means Project A -> C Project A -> D Project B -> D Project B -> E

So we would like to have a license report on A and B separatly including transient project consumed packages.

sensslen commented 11 months ago

I just released https://www.nuget.org/packages/nuget-license. This is a release of my fork of v3.0.0 of this tool. Unfortunately @tomchavakis has been unresponsive for quite some time and the nuget api key expired which means I was unable to release in the original form.

This new version is explicitly tested to support your scenario. Be sure to use the -t option...