CPMR0007 - License Url Missing / License Acceptance is True (nuspec)

CPMR0007 - License Url Missing / License Acceptance is True (nuspec)

WARNING

This rule has been marked as a Requirement.

Requirements represent the minimum quality of a package that is acceptable. When a package version has failed requirements, the package version requires fixing and/or response by the maintainer. Provided a Requirement has flagged correctly, it must be fixed before the package version can be approved. The exact same version should be uploaded during moderation review.

Issue

In the nuspec, there is a <licenseUrl> element. It was found to be missing or empty in the package.

Please update the nuspec to include a <licenseUrl /> element that is non-empty. If your nuspec file is missing this field, you should run choco new testpkg and look at the output from that (ensure you have the latest version of Chocolatey).

Reasoning

If you want to require license acceptance, you must include the license url.