nuget-license
3.0.10
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet tool install --global nuget-license --version 3.0.10
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest # if you are setting up this repo dotnet tool install --local nuget-license --version 3.0.10
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=nuget-license&version=3.0.10
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package nuget-license --version 3.0.10
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Nuget License Utility
A .net tool to print and validate the licenses of .net code. This tool supports .NET (Core), .NET Standard and .NET Framework projects. Native c++ projects are supported too but only in the .NET Framework variant of nuget-license. These projects will not work if the tool is installed via dotnet tool install
.
nuget-license tool
Install tool
dotnet tool install --global nuget-license
Uninstall tool
dotnet tool uninstall --global nuget-license
Usage
Usage: nuget-license [options]
Options:
Option | Description |
---|---|
--version |
Show version information. |
-i\|--input <INPUT_FILE> |
The project (or solution) file for which to analyze dependency licenses |
-ji\|--json-input <INPUT_JSON_FILE> |
File in json format that contains an array of all files to be evaluated. The Files can either point to a project or a solution. |
-t\|--include-transitive |
If set, the whole license tree is followed in order to determine all nuget's used by the projects |
-a\|--allowed-license-types <ALLOWED_LICENSES> |
File in json format that contains an array of all allowed license types |
-ignore\|--ignored-packages <IGNORED_PACKAGES> |
File in json format that contains an array of nuget package names to ignore (e.g. useful for nuget packages built in-house). Note that even though the packages are ignored, their transitive dependencies are not. Wildcard characters (*) are supported to specify ranges of ignored packages. |
-mapping\|--licenseurl-to-license-mappings <LICENSE_MAPPING> |
File in json format that contains a dictionary to map license urls to licenses. |
-override\|--override-package-information <OVERRIDE_PACKAGE_INFORMATION> |
File in json format that contains a list of package and license information which should be used in favor of the online version. This option can be used to override the license type of packages that e.g. specify the license as file. |
-d\|--license-information-download-location <DOWNLOAD_LICENSE_INFORMATION> |
When set, the application downloads all licenses given using a license URL to the specified folder. |
-o\|--output <OUTPUT_TYPE> |
This parameter allows to choose between tabular and json output. Allowed values are: Table, Json, JsonPretty. Default value is: Table. |
-err\|--error-only |
If this option is set and there are license validation errors, only the errors are returned as result. Otherwise all validation results are always returned. |
-include-ignored\|--include-ignored-packages |
If this option is set, the packages that are ignored from validation are still included in the output. |
-exclude-projects\|--exclude-projects-matching <EXCLUDED_PROJECTS> |
This option allows to specify project name(s) to exclude from the analysis. This can be useful to exclude test projects from the analysis when supplying a solution file as input. Wildcard characters (*) are supported to specify ranges of ignored projects. The input can either be a file name containing a list of project names in json format or a plain string that is then used as a single entry. |
-?\|-h\|--help |
Show help information. |
Example tool commands
Show help
nuget-license --help
Validate licenses for .csproj file
nuget-license -i project.csproj
Generate machine readable output
nuget-license -i project.csproj -o jsonPretty
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
Version | Downloads | Last updated |
---|---|---|
3.0.13 | 23,367 | 9/18/2024 |
3.0.12 | 888 | 9/16/2024 |
3.0.11 | 141 | 9/16/2024 |
3.0.10 | 3,188 | 9/4/2024 |
3.0.9 | 11,644 | 8/15/2024 |
3.0.9-beta.3 | 62 | 8/14/2024 |
3.0.9-beta.2 | 63 | 8/14/2024 |
3.0.9-beta.1 | 59 | 8/14/2024 |
3.0.8 | 1,742 | 8/12/2024 |
3.0.7 | 768 | 8/7/2024 |
3.0.6 | 1,919 | 7/25/2024 |
3.0.5 | 4,887 | 7/10/2024 |
3.0.4 | 1,574 | 7/4/2024 |
3.0.3 | 18,772 | 4/9/2024 |
3.0.3-beta.4 | 2,335 | 3/4/2024 |
3.0.3-beta.3 | 82 | 2/27/2024 |
3.0.2 | 5,895 | 2/20/2024 |
3.0.1 | 6,346 | 1/8/2024 |
3.0.0 | 319 | 12/9/2023 |
3.0.0-alpha.10 | 86 | 12/9/2023 |