Skip to content

Decompile compiled .NET assemblies with ILSpy to see how APIs and packages work internally.

CCM score
70 of 100
skills.sh installs
684
GitHub stars
1.3K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers decompiling assemblies to stdout, folders, or full projects, plus viewing IL code
  • Includes targeted type decompilation with -t and language version selection with -lv
  • Lists common assembly locations: NuGet packages, runtime libraries, SDK references, and build output
  • Notes that ReadyToRun, trimmed, or AOT builds may hide or reduce code, so non-trimmed builds are preferred

Install

$ npx -y skills add aaronontheweb/dotnet-skills --skill ilspy-decompile -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

.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

Details

Repository
github.com/aaronontheweb/dotnet-skills
Categories
.NET & C#, Debugging, Security
First seen
Jun 3, 2026

Questions

What does the ilspy-decompile skill do?

The ilspy-decompile skill helps an agent understand .NET code by decompiling compiled assemblies with ILSpy. It can show how a .NET API works internally, inspect NuGet package source, view framework implementation, or read compiled .NET binaries.

How do I install the ilspy-decompile skill?

Run npx -y skills add aaronontheweb/dotnet-skills --skill ilspy-decompile -y in a project to install it. Once installed, the agent can decompile assemblies to inspect .NET internals.

What do I need to use ilspy-decompile?

You need the .NET SDK installed and the ILSpy command-line tool, available through dnx ilspycmd or dotnet tool install --global ilspycmd. The skill also works on assemblies such as NuGet package DLLs or your own build output.

Where does ilspy-decompile rank in the .NET and C# category?

On the .NET and C# category page, ilspy-decompile ranks in the top 100. Other skills near the top of that category include dotnet-backend-patterns, dotnet-best-practices, nuget-manager and microsoft-code-reference.

More from aaronontheweb/dotnet-skills

All 34

Similar to Ilspy Decompile

More .NET & C#