icsharpcode/ILSpy

C#
macOSWindowsLinux

开源替代 .NET Reflector

.NET Decompiler with support for PDB generation, ReadyToRun, Metadata (&more) - cross-platform!

decompilerdecompiler-enginec-sharpdotnetdotnetcoremonounitypdbilspydecompile
Star 增长趋势
Star
26k
Forks
3.7k
周增长
+37
Issues
160
10k20k
2011年2月2016年4月2021年6月2026年9月
README

ILSpy NuGet Build ILSpy Mastodon Bluesky ILSpy VS extension

ILSpy is the open-source, cross-platform .NET assembly browser and decompiler. The desktop UI runs on Windows, Linux, and macOS (built on Avalonia).

Download: latest release | latest CI build (master) | Microsoft Store (RTM versions only)

Decompiler Frontends

Aside from the cross-platform desktop UI ILSpy (downloadable via Releases, see also plugins), the following other frontends are available:

Features

  • Decompilation to C# (check out the language support status)
  • Whole-project decompilation
  • Open from NuGet feed, open from running process in addition to disk and GAC (Windows-only)
  • Search for types/methods/properties (learn about the options)
  • Hyperlink-based type/method/property navigation, bookmarks
  • Base/Derived types navigation, history
  • Assembly metadata explorer (feature walkthrough)
  • BAML to XAML decompiler, !AvaloniaResources support
  • ReadyToRun binary support for .NET Core (see the tutorial)
  • Extensible via plugins
  • Additional features in DEBUG builds (for the devs)

License

ILSpy is distributed under the MIT License. Please see the About doc for details, as well as third party notices for included open-source libraries.

How to build

Windows:

  • Make sure PowerShell 7+ is installed (Windows PowerShell at least version 5.0 works as well)
  • Clone the ILSpy repository using git.
  • Execute git submodule update --init --recursive to download the ILSpy-Tests submodule (used by some test cases).
  • Install Visual Studio (documented version: 18.0/2026). You need the following workload components:
    • Workload ".NET Desktop Development". This workload includes the .NET Framework 4.8 SDK and the .NET Framework 4.7.2 targeting pack, as well as the .NET 10.0 SDK (ILSpy.csproj targets .NET 10.0, but we have net472 projects too). Our unit tests require .NET 11.0 SDK.
    • Workload "Visual Studio extension development" (Note: ILSpy.VSExtensions.slnx is separate from ILSpy.sln and thus this workload is optional)
    • Individual Component "MSVC v143 - VS 2022 C++ x64/x86 build tools" (or similar)
      • The VC++ toolset is optional; if present it is used for editbin.exe to modify the stack size used by ILSpy.exe from 1MB to 16MB, because the decompiler makes heavy use of recursion, where small stack sizes lead to problems in very complex methods.
  • Open ILSpy.sln in Visual Studio.
    • NuGet package restore will automatically download further dependencies
    • Run project "ILSpy" for the ILSpy UI
    • Use the Visual Studio "Test Explorer" to see/run the tests
    • If you are only interested in a specific subset of ILSpy, you can also use
      • ILSpy.Desktop.slnf: for the cross-platform Avalonia UI and its tests
      • ILSpy.XPlat.slnf: for the cross-platform CLI (ilspycmd) or PowerShell cmdlets
      • ILSpy.VSExtensions.slnx: for the Visual Studio extensions

Note: Visual Studio includes a version of the .NET SDK that is managed by the Visual Studio installer - once you update, it may get upgraded too. Please note that ILSpy is only compatible with the .NET 11.0 SDK and Visual Studio will refuse to load some projects in the solution (and unit tests will fail). If this problem occurs, please manually install the .NET 11.0 SDK from here.

Unix / Mac:

  • Make sure .NET 10.0 SDK (for run) and .NET 11.0 SDK (for tests) is installed. Better yet, use dotnetup with SDK channel preview.
  • Make sure PowerShell is installed (formerly known as PowerShell Core)
  • Clone the repository using git.
  • Execute git submodule update --init --recursive to download the ILSpy-Tests submodule (used by some test cases).
  • Use dotnet build ILSpy.Desktop.slnf to build the cross-platform Avalonia desktop UI; run it with dotnet run --project ILSpy.
  • Use dotnet build ILSpy.XPlat.slnf to build only the CLI tool (ilspycmd) and PowerShell cmdlets.

We recommend Visual Studio Code or derivatives together with DotRush, which is also available for derivatives of VS Code.

How to contribute

Current and past contributors.

Privacy Policy for ILSpy

ILSpy does not collect any personally identifiable information, nor does it send user files to 3rd party services. ILSpy does not use any APM (Application Performance Management) service to collect telemetry or metrics.

相关仓库
skylot/jadx

Dex to Java decompiler

JavaMavenApache License 2.0androiddex
50.4k5.7k
Konloch/bytecode-viewer

A Java 8+ Jar & Android APK Reverse Engineering Suite (Decompiler, Editor, Debugger & More)

JavaMavenGNU General Public License v3.0java-decompilerapk
bytecodeviewer.com
15.6k1.3k
Col-E/Recaf

The modern Java bytecode editor

JavaMavenMIT Licensejavabytecode
recaf.coley.software
7.4k538
jindrapetrik/jpexs-decompiler

JPEXS Free Flash Decompiler

JavaMavenGNU General Public License v3.0flashswf
5.9k783
charles2gan/GDA-android-reversing-Tool

the fastest and most powerful android decompiler(native tool working without Java VM) for the APK, DEX, ODEX, OAT, JAR, AAR, and CLASS file. which supports malicious behavior detection, privacy leaking detection, vulnerability detection, path solving, packer identification, variable tracking, deobfuscation, python&java scripts, device memory extraction, data decryption, and encryption, etc.

PythonPyPIApache License 2.0decompilervulnerability-scanners
twitter.com/charles_gan1
4.8k574
zrax/pycdc

C++ python bytecode disassembler and decompiler

C++cliGNU General Public License v3.0pythondecompiler
4.6k879
JetBrains/fernflower

Decompiler from Java bytecode to Java, used in IntelliJ IDEA.

JavaMavenApache License 2.0javadecompiler
github.com/JetBrains/intellij-community/tree/master/plugins/java-decompiler/engine
4.4k731
rocky/python-uncompyle6

A cross-version Python bytecode decompiler

PythonPyPIlibraryGNU General Public License v3.0decompilerpython
4.3k463
decompiler-explorer/decompiler-explorer

Decompiler Explorer! Compare tools on the forefront of static analysis, now in your web browser!

PythonPyPIappMIT Licenseangrdecompiler
dogbolt.org
2.7k229
SamboyCoding/Cpp2IL

Work-in-progress tool to reverse unity's IL2CPP toolchain.

C#MIT Licenseil2cpp-metadataanalysis
2.6k337
uxmal/reko

Reko is a binary decompiler.

C#GNU General Public License v2.0decompilerdotnet
uxmal.github.io/reko
2.6k269
ValveResourceFormat/ValveResourceFormat

Source 2 Viewer is an all-in-one tool to browse VPK archives, view, extract, and decompile Source 2 assets, including maps, models, materials, textures, sounds, and more.

C#appMIT Licensedecompilerparser
s2v.app
2.4k292