assembly-rewriter 0.14.6

dotnet tool install --global assembly-rewriter --version 0.14.6
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local assembly-rewriter --version 0.14.6
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=assembly-rewriter&version=0.14.6
                    
nuke :add-package assembly-rewriter --version 0.14.6
                    

assembly-rewriter

nullean

A .NET tool that renames the top-level namespace of .NET assemblies, and the references between them, so two versions of the same assembly can be referenced side by side.

NuGet

Install

dotnet tool install --global assembly-rewriter

On Linux (x64, arm64), Windows (x64, arm64) and macOS (arm64) this installs a native-AOT executable from the assembly-rewriter.<rid> package; everywhere else it falls back to the framework-dependent assembly-rewriter.any. Install the assembly-rewriter package itself, not those.

Quick start

Rewrite NEST and the Elasticsearch.Net it depends on in one call, so Nest620.dll declares Nest620.* types and references Elasticsearch.Net620:

assembly-rewriter rewrite -i lib/Nest.dll -o out/Nest620.dll -i lib/Elasticsearch.Net.dll -o out/Elasticsearch.Net620.dll

The tool assumes the dll's name is its top-level namespace and takes the new one from the output file name. It rewrites type namespaces, the references between the assemblies passed with -i (dependencies first), ldstr literals that start with the namespace, and compiler-generated backing fields.

Option What
-i, --in an assembly to rewrite (repeatable)
-o, --out where its rewritten copy goes (repeatable); pairs up with -i by position
-r, --resolvedir an extra directory to resolve dependencies that are not rewritten from (repeatable)
-k, --keyfile strong-name sign the rewritten assemblies, or the merged one with -m
-m, --merge merge every rewritten assembly into the first -o path
-v, --verbose verbose output

The package also carries an agent skill (skills/assembly-rewriter/SKILL.md). The tool runs as a GitHub Action (uses: nullean/assembly-rewriter@main) and as a container (ghcr.io/nullean/assembly-rewriter) too, both without a .NET SDK.

Learn more

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
0.14.6 48 11/12/2026
0.14.5 63 11/11/2026
0.14.4 275 9/3/2026
0.13.0 6,270 6/30/2023
0.12.0 69,290 11/16/2020
0.11.0 2,032 9/18/2020
0.10.0 2,837 5/19/2020
0.9.1 751 5/15/2020
0.9.0 767 5/1/2020