Serialize .NET Core assemblies
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
AssemblyBuilder.Savemethod which existed since .NET 1.1 but that as not been ported to .NET Core 3.0.
To install with NuGet:
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.