Menu

A Unified Theory of Multi-Assembly .NET Obfuscation: It's a Rename Refactoring, and the Compiler Already Went Home published
📰

A Unified Theory of Multi-Assembly .NET Obfuscation: It's a Rename Refactoring, and the Compiler Already Went Home published

DEV Community: dotnet·Skater·13 days ago
#AvaZydaz
#devtodotnet#devto#dev#obfuscation#myapp
Long article (1705 words) — no AI summary yet.
Reading 0:00
15s threshold

Your build is green. Your tests pass. You ship. A customer opens the app and gets System.MissingMethodException - pointing at a method that has existed, untouched, since 2019.

If that sentence gave you flashbacks, this post is for you. And if you're about to obfuscate a multi-project .NET solution for the first time, read this first, because that exception is already circling.

Here's my claim: multi-assembly obfuscation is not five separate problems (public APIs, DTOs, reflection, build order, packaging). It's one problem wearing five costumes . Once you see the mechanism underneath, all the usual folklore - "obfuscate in dependency order," "freeze your contracts," "exclude serialized DTOs" - stops being rules you memorize and becomes stuff you could have derived yourself.

So let's derive it.

The toy solution

Everything below uses this layout, which is roughly the shape of every commercial .NET desktop app I've ever seen:

MyApp.sln ├── MyApp.Data → queries, persistence ├── MyApp.Core → domain logic,…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.