search-source
Decompile a .NET assembly to C# source and search for a regex pattern. Returns matching files with line snippets and preserves decompiled tree for follow-up queries.
Instructions
Decompile the assembly to a temporary directory then grep its C# source for a pattern. Returns the matching files with line snippets. The decompiled tree is preserved on disk for follow-up queries (path returned in 'outDir').
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to the assembly. | |
| outDir | No | Optional output directory to reuse; otherwise a temp dir under the assembly's directory is created. | |
| pattern | Yes | JavaScript regex pattern. Case-insensitive flag is implied. | |
| maxMatches | No |