# ilspy-cli: targeted .NET decompilation for agents

> Rust CLI that hosts an ILSpy C# bridge in-process for assembly, type and named-method decompilation, source search and structured JSON output. A separate PE-header detector identifies managed assemblies without loading the .NET runtime.

- Type: Tool
- Targets: App
- Category: .NET tools
- Relationship: Foundation tool
- Sources reviewed: 2026-10-20
- Added to the catalog: 2026-10-20
- Original resource: <https://github.com/akiselev/ilspy-cli>
- Primary source: <https://github.com/akiselev/ilspy-cli/blob/089895f16a9031bb8391db13c2160def9a2e8b60/README.md>
- Catalog page: <https://awesomerea.org/resources/akiselev-ilspy-cli/>
- Record JSON: <https://awesomerea.org/resources/akiselev-ilspy-cli/record.json>
- Chinese version: [简体中文](https://awesomerea.org/zh/resources/akiselev-ilspy-cli/index.md)

## Requirements & limits

- Building requires a Rust toolchain and .NET 8 SDK; build.rs invokes dotnet publish for the C# bridge, whose project pins ICSharpCode.Decompiler 9.1.0.7988. Decompilation needs the .NET 8 runtime; the detect command follows a separate Rust-only path.
- Method selection matches the first method with the requested name within the named type; it does not disambiguate overloads by signature. Source search skips types whose decompilation throws, so an empty result is not proof that the requested pattern is absent from the complete assembly.
- The integration suite builds one small SampleLib fixture and checks command output, including a simple Add method.
- README and Cargo metadata declare GPL-3.0, but the complete pinned tree has no separate LICENSE/COPYING text. The upstream ILSpy engine and user-provided assemblies retain their own licensing conditions.

## Primary sources

1. <https://github.com/akiselev/ilspy-cli/blob/089895f16a9031bb8391db13c2160def9a2e8b60/README.md>
2. <https://github.com/akiselev/ilspy-cli/blob/089895f16a9031bb8391db13c2160def9a2e8b60/src/main.rs>
3. <https://github.com/akiselev/ilspy-cli/blob/089895f16a9031bb8391db13c2160def9a2e8b60/src/ilspy/detect.rs>
4. <https://github.com/akiselev/ilspy-cli/blob/089895f16a9031bb8391db13c2160def9a2e8b60/src/bridge/mod.rs>
5. <https://github.com/akiselev/ilspy-cli/blob/089895f16a9031bb8391db13c2160def9a2e8b60/bridge/IlSpyBridge.cs>
6. <https://github.com/akiselev/ilspy-cli/blob/089895f16a9031bb8391db13c2160def9a2e8b60/bridge/IlSpyBridge.csproj>
7. <https://github.com/akiselev/ilspy-cli/blob/089895f16a9031bb8391db13c2160def9a2e8b60/tests/integration_tests.rs>
8. <https://github.com/akiselev/ilspy-cli/blob/089895f16a9031bb8391db13c2160def9a2e8b60/tests/fixtures/SampleLib/SampleClass.cs>
9. <https://github.com/akiselev/ilspy-cli/blob/089895f16a9031bb8391db13c2160def9a2e8b60/Cargo.toml>
10. <https://github.com/akiselev/ilspy-cli/blob/089895f16a9031bb8391db13c2160def9a2e8b60/AGENTS.md>

## More in Apps

- [React-Decode](https://awesomerea.org/resources/react-decode/index.md) · Tool
- [abc-decompiler](https://awesomerea.org/resources/abc-decompiler/index.md) · Tool
- [slicer](https://awesomerea.org/resources/slicer/index.md) · Tool
- [APK Studio](https://awesomerea.org/resources/apk-studio/index.md) · Tool
- [APKiD](https://awesomerea.org/resources/apkid/index.md) · Tool
- [dex2jar](https://awesomerea.org/resources/dex2jar/index.md) · Tool

## About this entry

The description was reviewed against primary sources.
Original editorial content: MIT. Linked projects, papers and assets retain their own rights and licenses.
