4

I'm currently trying to integrate the ILDAsm package in my .Net Core project that contains the executable file ildasm.exe which I want to call from my application. The nuget package is explicitly made for .Net Core and all runtimes (linux, windows, osx, etc.). Obviously no reference is added to my project after installing the package, but I also have no idea what I have to do to use the package (what is/will be the path of ildasm.exe?).

Just to be clear, I want to use the executable file from my code when my application is running and not on build.

1 Answer 1

6

There is an open GitHub issue about providing ildasm with the .NET Core SDK.

The Microsoft.NETCore.ILDAsm NuGet package contains a runtime.json file but no binaries.

This runtime.json file refers to several runtime NuGet packages that contain native versions of ildasm for the different platforms. On the Mac if you install runtime.osx-x64.Microsoft.NETCore.ILDAsm into your project you can then run ildasm from the command if the full path is used:

~/.nuget/packages/runtime.osx-x64.microsoft.netcore.ildasm/2.0.3/runtimes/osx-x64/native/ildasm
Sign up to request clarification or add additional context in comments.

2 Comments

So what purpose has this nuget package? Anyways, I think I will download the nuget packages for the required platforms manually and extract the executable file of ildasm in the output folder of my application. Thanky you for your answer.
Reading some of the GitHub comments this package is currently just used to separate it from the coreclr package and avoid having to rebuild them - there does not seem to be a recommend way of using these tools yet.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.