nupkg-validator.linux-x64
0.11.6
dotnet add package nupkg-validator.linux-x64 --version 0.11.6
NuGet\Install-Package nupkg-validator.linux-x64 -Version 0.11.6
<PackageReference Include="nupkg-validator.linux-x64" Version="0.11.6" />
<PackageVersion Include="nupkg-validator.linux-x64" Version="0.11.6" />
<PackageReference Include="nupkg-validator.linux-x64" />
paket add nupkg-validator.linux-x64 --version 0.11.6
#r "nuget: nupkg-validator.linux-x64, 0.11.6"
#:package nupkg-validator.linux-x64@0.11.6
#addin nuget:?package=nupkg-validator.linux-x64&version=0.11.6
#tool nuget:?package=nupkg-validator.linux-x64&version=0.11.6
nupkg-validator

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.
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
- Source, GitHub Action and container usage: https://github.com/nullean/nupkg-validator
- Releases: https://github.com/nullean/nupkg-validator/releases
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.