Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Lokad/ILPack
Serialize .NET Core assemblies
https://github.com/Lokad/ILPack
c-sharp dotnet dotnet-core msil serialization
Last synced: about 2 months ago
JSON representation
Serialize .NET Core assemblies
- Host: GitHub
- URL: https://github.com/Lokad/ILPack
- Owner: Lokad
- License: mit
- Created: 2019-02-13T19:53:00.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-04-15T14:21:48.000Z (8 months ago)
- Last Synced: 2024-09-18T02:57:37.131Z (3 months ago)
- Topics: c-sharp, dotnet, dotnet-core, msil, serialization
- Language: C#
- Homepage:
- Size: 265 KB
- Stars: 306
- Watchers: 15
- Forks: 39
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
- awesome - Lokad/ILPack - Serialize .NET Core assemblies (C\#)
README
# Lokad.ILPack
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.Save` method which existed
since .NET 1.1 but that has not been ported to .NET Core 3.0.To install with NuGet:
Install-Package Lokad.ILPack
Usage:
```cs
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.