.NET Core tool to print or save all the licenses of a project
APACHE-2.0 License
⚠️ This project seems to be abandoned: The original author of this project has not shown up in quite some while. Therefore it's impossible to move forward with it (even though there are people that do have write access to the repository. There has been a rewrite of the project that provides similar functionality. Please check it out here: https://github.com/sensslen/nuget-license.
A .net core tool to print the licenses of a project. This tool support .NET Core and .NET Standard Projects.
dotnet tool install --global dotnet-project-licenses
dotnet tool uninstall --global dotnet-project-licenses
Usage: dotnet-project-licenses [options]
Options:
dotnet-project-licenses --help
dotnet-project-licenses -i projectFolder
Values for the input may include a folder path, a Visual Studio '.sln' file, a '.csproj' or a '.fsproj' file or a '.vbproj' file.
dotnet-project-licenses -i projectFolder -u
dotnet-project-licenses -i projectFolder -u -o
dotnet-project-licenses -i projectFolder -o --outfile ../../../another/folder/new-name.txt
dotnet-project-licenses -i projectFolder -u -o -j
dotnet-project-licenses -i projectFolder --export-license-texts
dotnet-project-licenses -i projectFolder -o -j -f ~/Projects/github --outfile ~/Projects/output.json --export-license-texts
dotnet-project-licenses -i projectFolder --export-license-texts --convert-html-to-text --packages-filter '/Microsoft.*/'
dotnet-project-licenses -i projectSolution.sln --use-project-assets-json --packages-filter '#System\..*#'
dotnet-project-licenses -i projectFolder --proxy-url "http://my.proxy.com:8080"
dotnet-project-licenses -i projectFolder --proxy-url "http://my.proxy.com:8080" --proxy-system-auth
docker build . -t nuget-license
docker run -it -v projectPath:/tmp nuget-license -i /tmp -f /tmp --export-license-texts -l Verbose
where projectPath is the path of the project that you want to export the licenses.
You can also add the command parameters of the tool.
ex.
docker run -it -v ~/Projects/github/nuget-license:/tmp nuget-license -i /tmp -o --export-license-texts -l Verbose