by Lokad

Lokad / ILPack

Serialize .NET Core assemblies

136 Stars 15 Forks Last release: Not found MIT License 127 Commits 0 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:


Exports a .NET type to a serialized assembly, with support for dynamic assemblies (i.e. custom IL generation). This library is intended as a drop-in replacement for the

method which existed since .NET 1.1 but that as not been ported to .NET Core 3.0.

To install with NuGet:

Install-Package Lokad.ILPack


var assembly = Assembly.GetAssembly(t);
var generator = new Lokad.ILPack.AssemblyGenerator();

// for ad-hoc serialization var bytes = generator.GenerateAssemblyBytes(assembly);

// direct serialization to disk generator.GenerateAssembly(assembly, "/path/to/file");

Released under the MIT license.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.