ada-nuget-consumer-verification

Verifies NuGet consumer samples against local library source via pack, restore, and feed checks.

Updated Jul 23, 2026
One-click install
npx skills add https://github.com/wubing7755/Ada --skill ada-nuget-consumer-verification-wubing7755
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ada-nuget-consumer-verification
Source: https://github.com/wubing7755/Ada/tree/main/skills/software-development/ada-nuget-consumer-verification
Command: npx skills add https://github.com/wubing7755/Ada --skill ada-nuget-consumer-verification-wubing7755

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Consumer samples that reference a library by package (not ProjectReference) silently test stale code: restores pull the released package from nuget.org instead of local source, focused tests run against stale HintPath DLLs, and new public APIs trigger RS0016 analyzer errors. This Skill provides the dev loop and diagnostics to make the consumer actually exercise current local source. ## Core Features & Use Cases - Pack-Restore-Verify Loop: Packs the library with the consumer's pinned version, clears only the consumer's local .packages cache, restores with its NuGet.Config, and confirms the resolved source via .nupkg.metadata. - Staleness Trap Diagnosis: Detects HintPath-referenced app DLLs that focused dotnet test runs never rebuild, and fixes RS0016 errors by updating PublicAPI.Unshipped.txt with analyzer-exact entries. - Consumer-Sample Gap Review: Reads a library's own sample as a friction report, hunting patterns like ignored framework contexts, per-kind singleton state, and stringly-typed kinds, then reports severity-ranked file:line findings split into framework-fix vs sample-fix. - Use Case: After adding a new API to your library, the consumer sample's tests fail with CS1061 even after restore — use this Skill to pack the pinned version into the local feed, clear the consumer cache, and verify the restore resolved locally. ## Quick Start Verify my NuGet consumer sample against the local library source and fix the CS1061 restore failures.

Frequently Asked Questions about ada-nuget-consumer-verification

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I test a local NuGet package against a consumer sample?

Pack the library with the consumer's pinned version using dotnet pack -p:PackageVersion, clear only the consumer's local .packages cache, then restore with the consumer's NuGet.Config. Verify the resolved source in .nupkg.metadata points to the local feed, not nuget.org.

Why does my consumer sample still resolve the released package from nuget.org?

The local feed must contain the exact pinned version and be listed first in the consumer's NuGet.Config. If the packed version mismatches the central PackageVersion pin, restore silently falls back to the released package on nuget.org.

Why do focused dotnet test runs execute stale code with HintPath references?

A test project referencing the app DLL via HintPath does not rebuild the app, so focused dotnet test runs against the old binary. Build the app project first or run the full solution so the HintPath DLL is refreshed.

How do I fix RS0016 PublicAPI analyzer errors after adding public API?

Update PublicAPI.Unshipped.txt with the analyzer's exact expected entry format, including nullable annotations and generic signatures. This is baseline maintenance, not test weakening; when unsure, write a best-guess entry and let the build error supply the exact string.

When should I not use NuGet consumer verification?

Skip it for general build and test gates, packaging and release publishing, public API design review, or code quality analysis. Those belong to dedicated verification, packaging, API review, and quality analysis workflows respectively.