Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nuget version specification imprecise #395

Open
ulfllorenz opened this issue Feb 14, 2025 · 1 comment
Open

Nuget version specification imprecise #395

ulfllorenz opened this issue Feb 14, 2025 · 1 comment

Comments

@ulfllorenz
Copy link

I have recently been made aware that Nuget versions are a bit tricky. If you look at https://learn.microsoft.com/en-us/nuget/concepts/package-versioning, it has some specialties.

Two highlights:

  • additional version data is case-insensitive when refering to packages: 1.0.0-Alpha and 1.0.0-alpha are identical
  • trailing zeros may be stripped, especially if these are the fourth component of a package version.

As an example, System.Data.SQLite.Core declares a version like 1.0.118.0 in its metadata, but Nuget tooling silently converts this, for example in the package name, to 1.0.118.

While this is a tool-specific issue, the Nuget tooling effectively controls the ecosystem. It would be good to clarify what exact version should appear in the PURL in case of conflict. I guess, the exact version of the Nuget package name is the safest option, but I do not have a strong opinion on this issue.

@matt-phylum
Copy link
Contributor

PyPA and Maven also have version number normalization schemes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants