Monograph 01 / 15NuGet staged publishing

How to Test and Stage a NuGet Release Before It Goes Public

Your library and its adapter both passed CI. Can a customer install them together? NuGet’s new staging option gives maintainers time to answer that question before a release goes public.

Radiaix Engineering & Product EditorialCustom Software, AI Agents, Web Platforms & QA Architecture
Published 3 min read
NuGet staged publishing illustrated as a green beam scanning blue Core and orange Reporting packages inside a glass inspection chamber.
Section 01

Two green builds, one broken install

Imagine you maintain a .NET billing library and its reporting adapter. Both builds pass for version 2.4.0. The adapter’s tests reference the library project directly, so they never read the dependency declaration in the packaged adapter. If that declaration still permits version 2.3.0, a customer with the older library installed can be the first person to discover that the adapter calls a method their copy doesn’t have.

On November 17, Microsoft introduced staged publishing on NuGet.org. Maintainers can upload a release for validation, leave it private and later approve publication. For the billing team, that creates a useful pause. They can test the files a customer will actually install, then decide when those same files are ready to ship.

Section 02

Give a small application the same install your customer gets

Take the .nupkg files from the release build and put them in a local NuGet feed. Use an application outside the library’s source tree. Give it a package reference to the adapter, restore its dependencies, then generate a report through its public API. This exercises the dependency declaration and the packaged assemblies together.

Run the example twice. Start with a fresh application to check the ordinary installation. Then start from a copy with billing library 2.3.0 already referenced and upgrade the adapter. Record which library version NuGet resolves and whether the report succeeds. Use an isolated package cache for the check so an earlier build with the same version cannot quietly supply the bits.

NuGet.org staging cannot serve packages to a consumer application, including one run by the package owner. Do the restore tests on the local or private feed and keep the tested artifacts for upload.

Section 03

Put the two tested versions in one staging group

On NuGet.org, stage the library and adapter under the same release owner and collect them in a group. Compare the two IDs and versions with the release notes. A group containing Billing.Core 2.4.0 and Billing.Reporting 2.3.0 should send the maintainer back to the build artifacts, even if both uploads passed validation.

A pipeline can do the uploading with a staging-only credential. An authorized maintainer with two-factor authentication enabled approves promotion on the NuGet.org website. For a team already using GitHub Actions, NuGet Trusted Publishing can issue a short-lived credential to its configured workflow.

Section 04

Make the first public restore yourself

A group approval starts publication for its members, but their availability can differ for a while. The adapter may become visible before a customer can fetch the core version it requires. Allow for that gap between pressing Promote and announcing that the release is ready.

Repeat the report-generation check with a fresh cache and NuGet.org as the package source. If the restore fails, note the missing package ID and version and check its status on NuGet.org. If it succeeds, record the resolved versions alongside the release notes. Now the team can tell customers exactly which installation it verified.

Executive Summary

Key Engineering Takeaways

TAKEAWAY // 01Test the release artifacts in a consumer app, including an upgrade from the previous supported version.
TAKEAWAY // 02Stage the files that passed the restore test and review the IDs and versions together.
TAKEAWAY // 03Verify a clean public restore of the full dependency chain before announcing availability.
Common Questions

Frequently Asked Questions

Can I install a package from the NuGet.org staging area?

Use a local or private feed to install it before release. NuGet.org keeps staged packages unavailable to restore until promotion.

What should I check after promoting a group?

Restore the top-level package in a clean consumer app, inspect its resolved dependencies and exercise one representative operation. This catches gaps when related versions become available at different times.

Continue Exploring Radiaix Monographs
All 15 Articles
MONOGRAPH // 02Software Engineering
Radiaix engineer architecting custom workflow software and real-time telemetry state machines
Custom Operational Software Development9 min read

Designing Custom Operational Software Around Real-World Workflows

Dashboards fail when they ignore exceptions and handoffs. See how Radiaix models state transitions, role permissions, and real-time telemetry for mission-critical software.

Radiaix Proof: Radiaix built a real-time fleet tracking and dispatch platform combining low-latency map telemetry, automated alert rules, and role-based exception workflows.
Next Monograph · Game Development

The Sound of GTA 6, From Vice City FM to Justice’s Score

Turn Architecture Into Production

Ready to solve this bottleneck with Radiaix?

Partner with Radiaix to scope, build, and launch your next system.