Search code examples
c#.net-corecilpeverify

Wrap IL into an assembly written on disk in C# / .NET Core?


I am creating a .NET method based on raw IL. I would like to wrap the stand-alone newly created method into a .NET assembly and write this assembly to disk as a foo.dll file in order to then feed this assembly to PEVerify or ILVerify. Indeed, those tools are invaluable when it comes to debugging large bespoke IL sequences.

Does anyone knows how to do this with .NET Core?


Solution

  • It appears that this problem has been pending for almost 4 years. In the end, we rolled out our own open source alternative to AssemblyBuilder.Save for .NET Core.