tomchavakis / nuget-license

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

[Question] Print the projects of specific nuget #192

Open LiorBanai opened 1 year ago

LiorBanai commented 1 year ago

Hi, is there a flag to also print which csproj is using the specific Nuget package? --include-project-file seems to do nothing as: dotnet-project-licenses --input solution.sln --md --unique --export-license-texts --include-project-file --convert-html-to-text -f licenses --outfile output.md --timeout 600 --packages-filter NugetLicensesExclude.json

paulsiersma commented 1 year ago

I'm experiencing the same problem. Seems like a useful flag, if only it would work.

paulsiersma commented 1 year ago

@LiorBanai it turns out that the --include-project-file option was only implemented for txt and json output files. I opened MR #199 to also implement for Markdown output.

LiorBanai commented 1 year ago

@paulsiersma nice!