Projects Issues Blogs Broadcasts Groups Events Resources
Project

ILSpy

.NET Decompiler

ILSpy Join the chat at https://gitter.im/icsharpcode/ILSpy NuGet Build status Twitter Follow ILSpy VS extension Build Status

ILSpy is the open-source .NET assembly browser and decompiler.

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

CI Build Nuget Feed (master): https://ci.appveyor.com/nuget/ilspy-masterfeed

Decompiler Frontends

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

Features

  • Decompilation to C#
  • Whole-project decompilation (csproj, not sln!)
  • Search for types/methods/properties (substring)
  • Hyperlink-based type/method/property navigation
  • Base/Derived types navigation, history
  • BAML to XAML decompiler
  • Extensible via plugins (MEF)
  • Check out the language support status

License

ILSpy is distributed under the MIT License.

Included open-source libraries:

  • Mono.Cecil: MIT License (part of ILSpy)
  • LightJson: MIT License (part of ICSharpCode.Decompiler)
  • Humanizer: MIT License (part of ICSharpCode.Decompiler)
  • AvalonEdit: MIT License
  • SharpTreeView: LGPL
  • ILSpy.BamlDecompiler: MIT license
  • CommandLineUtils: Apache License 2.0 (part of ICSharpCode.Decompiler.Console)

How to build

Windows:

  • Install Visual Studio (documented version: 16.3) with the following components:
    • Workload ".NET Desktop Development". This includes by default .NET Framework 4.8 SDK and the .NET Framework 4.7.2 targeting pack, as well as the .NET Core 3.0 SDK (ILSpy.csproj targets .NET 4.7.2, and ILSpy.sln uses SDK-style projects).
    • Workload "Visual Studio extension development" (ILSpy.sln contains a VS extension project)
    • Individual Component "MSVC v142 - VS 2019 C++ x64/x86 build tools (v14.23)" (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.
  • Check out the ILSpy repository using git.
  • Execute git submodule update --init --recursive to download the ILSpy-Tests submodule (used by some test cases).
  • 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

Note: Visual Studio 16.3 and later include a version of the .NET Core SDK that is managed by the Visual Studio installer, once you update to 16.4 it may get upgraded to version 3.1. Please note that ILSpy is not compatible with the .NET Core 3.1 SDK and Visual Studio will refuse to load some projects in the solution. If this problem occurs, please manually install the .NET Core 3.0 SDK from here.

Unix / Mac:

  • Make sure .NET Core 2.1 LTS Runtime is installed (you can get it here: https://get.dot.net).
  • Make sure .NET Core 3.0 SDK is installed.
  • Check out the repository using git.
  • Execute git submodule update --init --recursive to download the ILSpy-Tests submodule (used by some test cases).
  • Use dotnet build Frontends.sln to build the non-Windows flavors of ILSpy (.NET Core Global Tool and PowerShell Core).

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.

NuGet

ICSharpCode.Decompiler (fuget.org)
408,384 Total Downloads 242 Downloads Per Day Latest Version: 60 (December 2, 2019) Hide All Versions Show All Versions
Version Downloads Last Updated
12/2/2019 December 2, 2019
11/2/2019 November 2, 2019
10/7/2019 October 7, 2019
9/19/2019 September 19, 2019
9/9/2019 September 9, 2019
8/12/2019 August 12, 2019
7/8/2019 July 8, 2019
5/12/2019 May 12, 2019
3/10/2019 March 10, 2019
1/16/2019 January 16, 2019
1/13/2019 January 13, 2019
1/5/2019 January 5, 2019
12/16/2018 December 16, 2018
8/13/2018 August 13, 2018
8/1/2018 August 1, 2018
7/23/2018 July 23, 2018
7/1/2018 July 1, 2018
6/24/2018 June 24, 2018
6/11/2018 June 11, 2018
4/8/2018 April 8, 2018
3/28/2018 March 28, 2018
3/12/2018 March 12, 2018
1/24/2018 January 24, 2018
1/15/2018 January 15, 2018
12/18/2017 December 18, 2017
12/18/2017 December 18, 2017
12/4/2017 December 4, 2017
11/28/2017 November 28, 2017
11/27/2017 November 27, 2017
11/27/2017 November 27, 2017
11/6/2017 November 6, 2017
10/23/2017 October 23, 2017
10/3/2017 October 3, 2017
9/18/2017 September 18, 2017
9/11/2017 September 11, 2017
9/4/2017 September 4, 2017
7/13/2015 July 13, 2015
4/26/2015 April 26, 2015
9157
1911
135
Website

{{ 'http://www.ilspy.net/' | no-protocol }}

Source

{{ 'https://github.com/icsharpcode/ILSpy' | no-protocol }}

Twitter

@ilspy.net

Chat

{{ 'https://gitter.im/icsharpcode/ILSpy' | no-protocol }}

NuGet