Skip to main content
Any Framework

A DotNet command line tool to create a project that references only the runtime packages from an applications *.deps.json file.

Published
Oct 8, 2026
11d ago
Total Downloads
1.2K
1,203

Install

dotnet add package TomsToolbox.NugetDeFrog --version 1.2.0

No framework information available.

README

NugetDeFrog

Build status NuGet Status

A DotNet command line tool to create a project that references only the runtime packages from an applications *.deps.json file

Intention of this tool

Package scanners like e.g. JFrog Xray can scan the nuget packages of a project for known vulnerabilities, but they only work on the sources, not on the build output. This leads to many false positives, as the scanner does not know which packages are actually used in the build output.

This tool creates a project file that references only the runtime packages from the *.deps.json file of the build output. This project then can then be scanned by the package scanner to get a more accurate result.

Installation

dotnet tool install TomsToolbox.NugetDeFrog -g

Usage

Usage: NugetDeFrog [--output <String>] [--windows] [--consolidate] [--help] [--version] [file-or-directory]

NugetDeFrog

Arguments:
  0: file-or-directory    Path to a dependency file or a directory with files '*.deps.json'. (Default: .)

Options:
  --output <String>    Path to the output project file. (Default: RuntimePackages\RuntimePackages.csproj)
  --windows            Use windows target platform (applied to .NET / .NET Core target frameworks only, not to .NET Framework); required if any of the projects require windows platform
  --consolidate        Consolidate multiple versions of the same package to the highest version. By default, the tool will fail if multiple versions of the same package are found
  -h, --help           Show help message
  --version            Show version

When --consolidate is used, the generated project additionally targets only the highest target framework found in the input files, instead of all of them

Example

dotnet tool update TomsToolbox.NugetDeFrog -g
NugetDeFrog --output RuntimePackages\RuntimePackages.csproj --windows MyProject\bin\Debug\net8.0\MyProject.deps.json
jf.exe dotnet restore RuntimePackages\RuntimePackages.csproj --build-name="MyBuild" --build-number="MyBuild.1.2.3" --project="MyProject"

Changes from Previous Version

No structural changes between v1.1.0 and v1.2.0.

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.