Skip to content

Add license and package metadata to HtmlParserSharp and CsQuery - #13

Open
lukasbob wants to merge 1 commit into
masterfrom
add-package-license-metadata
Open

lukasbob wants to merge 1 commit into
masterfrom
add-package-license-metadata

Conversation

@lukasbob

@lukasbob lukasbob commented Oct 7, 2026

Copy link
Copy Markdown

Problem

The HtmlParserSharp and CsQuery nupkgs ship with no license metadata, so dependency scanners flag them as unlicensed (e.g. in services using PfgFramework).

Fix

  • Add source/HtmlParserSharp/LICENSE.txt, copied verbatim from upstream. It gathers the MIT/WHATWG notices that our source files already carry in their headers, so no new terms are introduced.
  • Set PackageLicenseFile and pack the license into both packages; CsQuery uses the existing root MIT LICENSE.txt.
  • Add RepositoryUrl, plus authors and a description for HtmlParserSharp.
  • Bump versions: HtmlParserSharp 2.0.1, CsQuery 3.0.1.

Checked locally with dotnet pack: both nuspecs now contain <license type="file"> and include LICENSE.txt.

Notes

  • After publishing, consumers (HtmlHighlight, Siteimprove.Selectors, PfgFramework.Common) need to bump for the fix to reach services.
  • dotnet pack source/HtmlParserSharp (as the Jenkinsfile runs it) fails locally with MSB5004 (duplicate project names in the .sln). This is pre-existing and not touched here.

🤖 Generated with Claude Code

The published nupkgs carried no license information, so dependency
scanners report them as unlicensed. Add upstream HtmlParserSharp's
LICENSE.txt (consolidating the per-file MIT notices the code already
carries), embed licenses in both packages, and bump patch versions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@lukasbob
lukasbob requested a review from a team as a code owner October 7, 2026 07:47
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