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.
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.
- The C# code, as a project
- A check that it builds and works the same
- 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?
- Download ILSpy from its GitHub releases page and open the DLL with File → Open.
- Select it in the tree, then File → Save Code to write a Visual Studio project with one .cs file per class.
- Open the .csproj in Visual Studio and build it. Comments and local variable names don't come back.