Closed ladamik closed 4 months ago
This can be resolved by using <PackageLicenseExpression>MIT</PackageLicenseExpression>
instead of PackageLicenseUrl
.
licenseUrl is deprecated according to NuGet documentation: https://learn.microsoft.com/en-us/nuget/reference/nuspec#licenseurl
Yes, I'll get this updated in the next couple days.
I hope you get time to update it soon :-) Thanks!
Completed!
We have a problem with licenses in our project. Could you add license information?
to csproj files: https://github.com/zymlabs/nswag-fluentvalidation/blob/e96dea5c6ac24d3ac6bf56842b8800fb2a1612c5/src/ZymLabs.NSwag.FluentValidation.AspNetCore/ZymLabs.NSwag.FluentValidation.AspNetCore.csproj#L7 https://github.com/zymlabs/nswag-fluentvalidation/blob/e96dea5c6ac24d3ac6bf56842b8800fb2a1612c5/src/ZymLabs.NSwag.FluentValidation/ZymLabs.NSwag.FluentValidation.csproj#L7
In our project, we check licenses by command: nuget-license -t -ji and we get errors:
ZymLabs.NSwag.FluentValidation - Cannot determine License type for url https://raw.githubusercontent.com/zymlabs/nswag-fluentvalidation/master/LICENSE
ZymLabs.NSwag.FluentValidation.AspNetCore - Cannot determine License type for url https://raw.githubusercontent.com/zymlabs/nswag-fluentvalidation/master/LICENSE.
We added packages to the "ignore" file to prevent checking licenses but it would be nice not to do it and have a possibility to check if a package has a proper license.