NuGet Error NU5035

The PackageLicenseUrl cannot be used in conjunction with the PackageLicenseFile and PackageLicenseExpression.

Issue

When using PackageLicenseFile or PackageLicenseExpression, you should not set the PackageLicenseUrl property. The licenseUrl metadata will be auto-generated by the client tools to a down-level friendly url.

Solution

Do not set the PackageLicenseUrl.