Skip to content

Fix PackageLicenseExpression so license metadata reaches nuget.org#16

Open
PalwinderSinghBounteous wants to merge 2 commits into
Bounteous-Inc:mainfrom
PalwinderSinghBounteous:fix/package-license-metadata
Open

Fix PackageLicenseExpression so license metadata reaches nuget.org#16
PalwinderSinghBounteous wants to merge 2 commits into
Bounteous-Inc:mainfrom
PalwinderSinghBounteous:fix/package-license-metadata

Conversation

@PalwinderSinghBounteous

Copy link
Copy Markdown

dotnet pack reads the canonical <PackageLicenseExpression> property; the <LicenseExpression> element previously used here (or omitted entirely) is silently ignored by the pack target, which is why the published .nupkg's .nuspec carried no <license> element and nuget.org listed the package as License: none.

Verified locally — dotnet pack now emits <license type="expression">...</license> in the produced .nuspec.

Palwinder Singh and others added 2 commits June 9, 2026 15:37
dotnet pack reads the canonical <PackageLicenseExpression> property; the
<LicenseExpression> element previously used here (or omitted entirely)
is silently ignored, which is why the published .nupkg's .nuspec carried
no <license> element and nuget.org listed the package as 'License: none'.

Verified locally: dotnet pack now emits <license type="expression">...</license>
in the produced .nuspec.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
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