Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

.NET decompiler for Mac or Linux

People also ask

Can .net be decompiled?

NET assemblies to C# dotPeek is a free-of-charge standalone tool based on ReSharper's bundled decompiler. It can reliably decompile any .

Does dotPeek work on Linux?

Unfortunately, this built-in compiler, dotpeek, is only available for Windows.

Does dotPeek work on Mac?

dotPeek is not available for Mac but there is one alternative that runs on macOS with similar functionality. The best Mac alternative is CFR, which is both free and Open Source.


Since most of the parts of .NET is open-sourced, ILSpy also works with Linux and Mac.

From project GitHub page:

Decompiler Frontends

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

  • Visual Studio 2017/2019 extension marketplace
  • Visual Studio Code Extension repository | marketplace
  • ICSharpCode.Decompiler NuGet for your own projects
  • Linux/Mac/Windows ILSpy UI based on Avalonia - check out https://github.com/icsharpcode/AvaloniaILSpy
  • Linux/Mac/Windows command line client - check out ICSharpCode.Decompiler.Console in this repository
  • Linux/Mac/Windows PowerShell cmdlets in this repository

Since VS Code works with Linux and Mac, that front end should work in those operating systems too. Command line client should also work.

In addition, JetBrains has a new IDE for .NET, Rider. It works in Linux and Mac. Rider has a built-in decompiler. Unfortunately, this built-in compiler, dotpeek, is only available for Windows.

Another choice is to use mono decompiler, a tool from monoproject. Try to use it. Note that this is an add-in in MonoDevelop.


There's a variant/fork of ILSpy using Avalonia which is available as a packaged MacOS app.

Download from https://github.com/icsharpcode/AvaloniaILSpy/releases

There are instructions for whitelisting the package (which is unsigned) on the page, e.g.:

enter image description here