Get license of NuGet packages in 'packages' folder of a solution.
Infer license from projectUrl and licenseUrl in the package's metadata.
Download license text from GtiHub and spdx.org.
Install-Package PackageLicenses -Version 1.0.5
dotnet add package PackageLicenses --version 1.0.5
<PackageReference Include="PackageLicenses" Version="1.0.5" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add PackageLicenses --version 1.0.5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.