ILSpy README

The project's README from github.com/icsharpcode/ILSpy. As one markdown file: README.md.

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

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:

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:

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.

ILSpy (icsharpcode/ILSpy)

Searching Database…

26.7K ·GitHub
这是什么东西?它是一个开源、跨平台的 .NET 程序集浏览器和反编译器:把编译好的 .NET 程序集拖进去,就能看到背后的 C# 代码,在 Windows、Linux 和 macOS 上都能用。
它是桌面应用还是命令行工具?主要是一个基于 Avalonia 的桌面应用,不过同一个反编译引擎也以 dotnet CLI 工具(ilspycmd)、PowerShell cmdlet 和 VS Code 扩展的形式发布。
怎么把它跑起来?从 GitHub Releases 下载最新版本,或者从 Microsoft Store 安装(仅限 RTM 版本)。如果要用命令行,Linux、Mac 和 Windows 上都有对应的 dotnet 工具(ILSpyCmd)。
在 Linux 和 macOS 上所有功能都一样吗?基本上一样。Avalonia 界面和 CLI 都是全跨平台的,但从正在运行的进程或 GAC 打开程序集这两个功能只在 Windows 上可用。
它会不会把我打开的程序集偷偷上传?不会。ILSpy 不收集任何个人身份信息,不会把你的文件发给第三方服务,也完全没有使用任何 APM 或遥测服务。
程序集加载进来之后能做什么?它可以把代码反编译成 C#——单个程序集或整个项目都行,还支持在类型、方法和属性之间搜索,超链接跳转,书签,程序集元数据浏览器,BAML 转 XAML 反编译,以及对 ReadyToRun .NET Core 二进制文件的支持。另外还可以通过插件扩展功能。
能在 Visual Studio 或 VS Code 里直接反编译吗?可以。Visual Studio 2022/2026 自带由 ILSpy 引擎(v8.2 和 v9.1)驱动的 F12 反编译功能,默认就是开启的;应用市场上还有独立的 VS Code 扩展。
能不能把反编译引擎嵌入我自己的 .NET 代码里?可以——ICSharpCode.Decompiler 和 ILSpyX 这两个 NuGet 包把引擎公开出来,可以直接在你自己的项目里使用。
Size
50.6 MB
Stars
26.7K
Age
15y
Commits · 90 Days