Stella
Reverse engineering

Decompile a DLL back to C# source code

Lost C# code, back as a project you can open.

Download StellaFree with the plan you already have.
You: I lost the source code for our program. Get the C# code back out of this DLL as a project I can build.
Stella:

On it. Opening the DLL now.

Stella:

Done. Open ShiftPay.sln in the new ShiftPay-RecoveredSource folder. It builds cleanly, and on your Nov 9 shifts it prints the same report as the original, down to the $4,021.11 total.

ShiftPay-RecoveredSource

The short answer.

Give Stella (stella.sh) the DLL or EXE and it gets the C# source code back as a project that opens in Visual Studio and builds.

Stella does this on Windows, Mac and Linux.

What you get.

  1. The C# code, as a project
  2. A check that it builds and works the same
  3. Your original files left alone

Just ask.

I lost the source code for our program. Get the C# code back out of this DLL as a project I can build.

Paste it into Stella and press Enter.

Questions.

How close is it to the original code?

Very close. Most names come back too.

Can I change it and use it again?

Yes. It builds like any other project.

Can I decompile a DLL in Visual Studio?

To read it, yes: turn on Enable navigation to decompiled sources and press F12 on a type. For a project you can build, ask Stella.

Is Stella free?

Yes. Free with the ChatGPT or Claude plan you already have.

Can I do it without Stella?
  1. Download ILSpy from its GitHub releases page and open the DLL with File → Open.
  2. Select it in the tree, then File → Save Code to write a Visual Studio project with one .cs file per class.
  3. Open the .csproj in Visual Studio and build it. Comments and local variable names don't come back.

Stella