Skip to content

Set licenseUrl to the canonical licenses.nuget.org address - #843

Merged
ademar merged 1 commit into
masterfrom
fix-nuget-license-url
Aug 26, 2026
Merged

ademar merged 1 commit into
masterfrom
fix-nuget-license-url

Conversation

@ademar

@ademar ademar commented Aug 26, 2026

Copy link
Copy Markdown
Member

nuget.org rejects a package that carries a unless is also present and points at
https://licenses.nuget.org/, so that older clients still resolve the license:

400 To provide a better experience for older clients when a license
expression is specified, must be set to
'https://licenses.nuget.org/Apache-2.0'.

dotnet pack synthesizes that url from the expression; paket does not, so set both explicitly in the templates. The v3.4.5 push failed on the first package, so nothing was published under that version.

nuget.org rejects a package that carries a <license type="expression">
unless <licenseUrl> is also present and points at
https://licenses.nuget.org/<expression>, so that older clients still
resolve the license:

  400 To provide a better experience for older clients when a license
  expression is specified, <licenseUrl> must be set to
  'https://licenses.nuget.org/Apache-2.0'.

`dotnet pack` synthesizes that url from the expression; paket does not, so
set both explicitly in the templates. The v3.4.5 push failed on the first
package, so nothing was published under that version.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@ademar
ademar merged commit eafc23f into master Aug 26, 2026
0 of 2 checks passed
@ademar
ademar deleted the fix-nuget-license-url branch September 7, 2026 03:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant