.net-core: equivalent to ILDASM / ILASM

Is there an equivalent ILDASM / ILASM for .net-core?

In particular, I'm looking for something that works on Linux (hence why .net-core).

+6
source share
2 answers

Both ildasm and ilasm tools are built using CoreCLR from this repo: https://github.com/dotnet/coreclr . They include similar features, such as versions shipped with Windows (no GUI, etc.).

There are nuget packages that include them as well ( https://www.nuget.org/packages?q=ildasm ), but they are platform dependent and also require the appropriate version of CoreCLR to use, so they don't just consume through nuget. The easiest way to run them on your platform is to simply create them from a source from the coreclr repository.

+6
source

There is no Microsoft built-in tool that services these features on Linux, and it is currently not built into the dot-net kernel.

However, Mono allows the assembly and removal of IL code:

Installation instructions can be found here.

What are you looking for:

ilasm - For assembling monodis - For disassembling 

They are found in the mono-utils package:

eg. In Debian 8, I did the following:

 sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF echo "deb http://download.mono-project.com/repo/debian jessie" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list sudo apt-get update apt-get install mono-devel mono-utils 

However, FYI for those trying to create an export, Mono does not seem to handle the x64 export syntax.

+2
source

All Articles