Star on GitHubStar1.1k stars

Tool

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.

Targets
App
Category
.NET tools
Relationship
Foundation tool
Sources reviewed

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.

About this entry

The description was reviewed against primary sources.

Report an outdated entry Suggest a translation fix

Primary sources

  1. README.md GitHub · akiselev/ilspy-cli · Revision 089895f
  2. src/main.rs GitHub · akiselev/ilspy-cli · Revision 089895f
  3. src/ilspy/detect.rs GitHub · akiselev/ilspy-cli · Revision 089895f
  4. src/bridge/mod.rs GitHub · akiselev/ilspy-cli · Revision 089895f
  5. bridge/IlSpyBridge.cs GitHub · akiselev/ilspy-cli · Revision 089895f
  6. bridge/IlSpyBridge.csproj GitHub · akiselev/ilspy-cli · Revision 089895f
  7. tests/integration_tests.rs GitHub · akiselev/ilspy-cli · Revision 089895f
  8. tests/fixtures/SampleLib/SampleClass.cs GitHub · akiselev/ilspy-cli · Revision 089895f
  9. Cargo.toml GitHub · akiselev/ilspy-cli · Revision 089895f
  10. AGENTS.md GitHub · akiselev/ilspy-cli · Revision 089895f

More in Apps

All 174 entries in Apps

↑↓ move↵ open⌘↵ new tab