Joannes Vermorel
Joannes Vermorel

Reputation: 9245

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?

Upvotes: 6

Views: 1527

Answers (1)

Joannes Vermorel
Joannes Vermorel

Reputation: 9245

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.

Upvotes: 12

Related Questions