# 0xd4d/dnlib

Reads and writes .NET assemblies and modules

Repository: https://github.com/0xd4d/dnlib
Canonical: https://ross.abutalabs.com/products/dnlib
Language: C#
License: MIT
License Family: permissive
Last push: 2026-06-02T17:07:19+00:00

## Health v2 (maintenance only)
Score: 61/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 85, release rhythm 8, longevity 100
- inputs: {"age_days": 4524, "days_push": 92, "days_rel": 475, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2483, forks 607 (observed 2026-08-28T04:06:55.418800+00:00)

## What it is
dnlib is a C# library that reads and writes .NET assemblies and modules, including method bodies and IL code. It supports loading modules from files, byte arrays, streams, or memory, and saving them back, including C++/CLI native assemblies.

## Use cases
- read and parse .NET assembly metadata from a dll or exe
- modify IL code in a .NET assembly and write it back
- analyze obfuscated Unity/Mono assemblies
- build a .NET deobfuscator or assembly patcher
- inspect types and methods in a .NET module programmatically
- rewrite .NET assemblies without recompiling source

## When to choose
- you need programmatic read/write access to .NET assembly metadata and IL
- you're building tools like deobfuscators, patchers, or analyzers for .NET binaries
- you need to handle Mono/Unity or C++/CLI assemblies

## When to avoid
- you only need to load and execute assemblies at runtime (use System.Reflection)
- you need decompilation to C# source rather than IL-level access
- you're working with non-.NET binaries

## Facets
- artifact type: library
- maturity: stable
- function: parser, serialization, developer-tools
- domain: developer-tools, programming-languages, security, reverse-engineering
- platform: dotnet, cross-platform
- tags: dotnet-assemblies, il-inspection, assembly-rewriting, metadata, obfuscation

## Member repositories
- 0xd4d/dnlib (main) score 61

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:55.418800+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:28:05.784231+00:00, confidence not recorded.
  - readme: https://github.com/0xd4d/dnlib (fetched 2026-08-28T04:06:55.418800+00:00, sha 4c0a875ca8a6)
- Data as of 2026-08-30T08:39:29.467469+00:00.
