Need help with ILPack?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

171 Stars 18 Forks MIT License 136 Commits 18 Opened issues


Serialize .NET Core assemblies

Services available


Need anything else?

Contributors list


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.