Skip to main content

Validates a NuGet packages, are dlls in Release Mode, do they have the right version and public key?

Total Downloads
5.8K
5,762
Published
Nov 12, 2026
11d ago

Get Started

dotnet add package nupkg-validator.linux-x64 --version 0.11.6

No framework information available.

README

nupkg-validator

nullean

A .NET tool that checks a NuGet package before you push it: every dll in it is built in Release, carries the version you expect and is strong-named with the key you expect.

NuGet

Install

dotnet tool install --global nupkg-validator

On Linux (x64, arm64), Windows (x64, arm64) and macOS (arm64) this installs a native-AOT executable from the nupkg-validator.<rid> package; everywhere else it falls back to the framework-dependent nupkg-validator.any. Install the nupkg-validator package itself, not those. Installing needs the .NET 10 SDK or later.

Quick start

nupkg-validator validate build/output/MyLib.1.2.3.nupkg -v 1.2.3 -a MyLib -k 96c599bbe3e70f5d

It exits with 0 when every check passes, and with 1 and the reason on stderr when one fails:

$ nupkg-validator validate nupkg-validator.any.0.11.5.nupkg -a nupkg-validator -v 0.12.0
...
[version] tools/net8.0/any/nupkg-validator.dll AssemblyFileVersion expected 0.12.0.0, actual: 0.11.5.0
Flag Check
(always) every dll is built in Release; -r, --skip-release-mode skips this
-v, --expected-version AssemblyVersion is fixed to Major.0.0.0 (-n expects the full version instead), AssemblyFileVersion is Major.Minor.Patch.0, and AssemblyInformationalVersion is exactly the version given
-k, --public-key the dll is strong-named with this public key token
--no-dependencies the package declares no dependencies

-a, --assembly-name checks only that dll; -d, --dlls-to-skip takes a comma-separated list to leave out. Without --no-fail-on-missing-dlls a package with no matching dll fails. The informational version is compared exactly, so a build that appends the commit needs the full 1.2.3+<sha>.

It also runs as a GitHub Action (uses: nullean/nupkg-validator@main) and as a container (ghcr.io/nullean/nupkg-validator), both without a .NET SDK.

Learn more

Downloads by Version

Similar & Alternative Packages

Hand-picked matching NuGet libraries based on tags & ecosystem

Depended On By

Find packages that declare this package as a dependency. NuGet does not provide a reverse-dependency endpoint, so candidates are checked on demand.

Adoption Assessment

Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.

No target framework metadata is available. Confirm compatibility in a representative project before standardising on this package.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.