Skip to main content
Root Library Catalog supports NuGet packages for .NET projects. Patched packages are published under the RootIO. prefix at pkg.root.io/nuget/ and can be consumed via the Root Patcher CLI or by adding Root as a NuGet package source.

Prerequisites

Install the Root Patcher CLI (rootio_patcher):
For macOS Intel and Windows, see the full installation instructions. Then set your API key:

How NuGet Patching Works

Root publishes patched NuGet packages in two forms: Both forms contain identical patched source. The aliased form lets you reference the patched package explicitly; the original form is a drop-in that requires no PackageReference changes.

Configure the Registry

Add Root as a package source in your NuGet.Config:
Keep your Root token out of source control. Use environment variable substitution or store credentials in a NuGet.Config outside your repository (e.g., ~/.nuget/NuGet/NuGet.Config).

Patch Dependencies

Use the Root Patcher CLI to identify vulnerable NuGet packages and apply Root-patched versions:
The patcher rewrites your PackageReference entries to use the aliased RootIO.* package name with the patched version:
The aliased package is API-compatible with the original — no code changes are required beyond the PackageReference update. Then restore and build as usual:

CI/CD Configuration

GitHub Actions

GitLab CI


Troubleshooting