find_obsolete_usage
Identifies all call sites referencing [Obsolete]-marked symbols in the .NET solution, grouped by deprecation message and severity to prioritize migration efforts. Flags both source and third-party NuGet deprecations.
Instructions
Find every call site referencing [Obsolete]-marked symbols in the solution, grouped by deprecation message and severity. Sharper than find_attribute_usages for migration-planning workflows: tells you 'we have 5 distinct deprecations pending; this one has 80 sites and is an error; that one has 3 sites and is a warning.' Includes both source-marked and metadata-marked obsoletes (third-party NuGet deprecations are surfaced too). Symbols with zero usages are omitted (no migration needed). Sort: errors first, then by usage count descending, then by symbol name. Test projects skipped. Project filter is case-insensitive.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project | No | Optional: restrict to a single project by name (case-insensitive). | |
| errorOnly | No | If true, only [Obsolete(..., true)] error-level deprecations are returned. Default false. |