Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 463
Joannes Vermorel Avatar asked Feb 04 '19 11:02

Joannes Vermorel


1 Answers

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.

like image 199
Joannes Vermorel Avatar answered Oct 19 '22 14:10

Joannes Vermorel