nupkg-validator 0.11.6

dotnet tool install --global nupkg-validator --version 0.11.6
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local nupkg-validator --version 0.11.6
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=nupkg-validator&version=0.11.6
                    
nuke :add-package nupkg-validator --version 0.11.6
                    

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

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
0.11.6 795 11/12/2026
0.11.5 625 11/11/2026
0.11.4 6,207 9/3/2026
0.10.1 19,354 11/12/2025
0.10.0 473 11/12/2025
0.7.0 6,160 2/27/2025
0.6.0 10,629 1/4/2024
0.5.0 27,133 1/25/2022
0.4.0 48,737 11/16/2020
0.3.1 3,685 5/25/2020
0.3.0 788 5/25/2020
0.2.4 861 5/15/2020
0.2.3 756 5/15/2020
0.2.2 836 5/12/2020
0.2.1 857 5/9/2020
0.2.0 791 5/8/2020