ilspy-decompile

aaronontheweb/dotnet-skills · updated Apr 8, 2026

$npx skills add https://github.com/aaronontheweb/dotnet-skills --skill ilspy-decompile
0 commentsdiscussion
summary

Use this skill to understand how .NET code works internally by decompiling compiled assemblies.

skill.md

.NET Assembly Decompilation with ILSpy

Use this skill to understand how .NET code works internally by decompiling compiled assemblies.

Prerequisites

  • .NET SDK installed
  • ILSpy command-line tool available via one of the following:
    • dnx ilspycmd (if available in your SDK or runtime)
    • dotnet tool install --global ilspycmd

Both forms are shown below. Use the one that works in your environment.

Note: ILSpyCmd options may vary slightly by version.
Always verify supported flags with ilspycmd -h.

Quick start

# Decompile an assembly to stdout
ilspycmd MyLibrary.dll
# or
dnx ilspycmd MyLibrary.dll

# Decompile to an output folder
ilspycmd -o output-folder MyLibrary.dll

Common .NET Assembly Locations

NuGet packages

~/.nuget/packages/<package-name>/<version>/lib/<tfm>/

.NET runtime libraries

dotnet --list-runtimes

.NET SDK reference assemblies

dotnet --list-sdks

Reference assemblies do not contain implementations.

Project build output

./bin/Debug/net8.0/<AssemblyName>.dll
./bin/Release/net8.0/publish/<AssemblyName>.dll

Core workflow

  1. Identify what you want to understand
  2. Locate the assembly
  3. List types
  4. Decompile the target

Commands

Basic decompilation

ilspycmd MyLibrary.dll
ilspycmd -o ./decompiled MyLibrary.dll
ilspycmd -p -o ./project MyLibrary.dll

Targeted decompilation

ilspycmd -t Namespace.ClassName MyLibrary.dll
ilspycmd -lv CSharp12_0 MyLibrary.dll

View IL code

ilspycmd -il MyLibrary.dll

Notes on modern .NET builds

  • ReadyToRun images may reduce readability
  • Trimmed or AOT builds may omit code
  • Prefer non-trimmed builds

Legal note

Decompiling assemblies may be subject to license restrictions.

Discussion

Product Hunt–style comments (not star reviews)
  • No comments yet — start the thread.
general reviews

Ratings

4.636 reviews
  • Pratham Ware· Dec 24, 2024

    Useful defaults in ilspy-decompile — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.

  • Lucas Ghosh· Dec 20, 2024

    I recommend ilspy-decompile for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.

  • Mia Rao· Dec 8, 2024

    ilspy-decompile has been reliable in day-to-day use. Documentation quality is above average for community skills.

  • Omar Taylor· Dec 4, 2024

    ilspy-decompile fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.

  • Noah Iyer· Nov 27, 2024

    Useful defaults in ilspy-decompile — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.

  • Soo White· Nov 23, 2024

    ilspy-decompile is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.

  • Sakshi Patil· Nov 15, 2024

    ilspy-decompile has been reliable in day-to-day use. Documentation quality is above average for community skills.

  • Advait Shah· Nov 11, 2024

    Solid pick for teams standardizing on skills: ilspy-decompile is focused, and the summary matches what you get after install.

  • Noah Srinivasan· Oct 18, 2024

    I recommend ilspy-decompile for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.

  • Omar Malhotra· Oct 14, 2024

    Keeps context tight: ilspy-decompile is the kind of skill you can hand to a new teammate without a long onboarding doc.

showing 1-10 of 36

1 / 4