what is dnspy
What Is dnSpy?
dnSpy is an open-source debugger and assembly editor for programs written on the .NET platform. Every .NET executable or class library carries Intermediate Language (IL) and rich metadata about its types, methods and fields. dnSpy reads that data, presents it as a browsable tree, and reconstructs high-level source code so you can follow the logic of an application that you only have in compiled form.
What sets dnSpy apart from a plain decompiler is that the reading, the debugging and the editing happen in the same window. You can find a method, put a breakpoint on a line of decompiled C#, start the program, inspect the values that arrive, rewrite the method body, compile it in place and save a new copy of the assembly, all without a Visual Studio solution or the original source files.
The project was started by the developer known as 0xd4d, who also wrote the de4dot deobfuscator and the dnlib metadata library that dnSpy relies on. The decompiler engine comes from ILSpy. The original GitHub repository was archived in late 2020, and active development has continued in the community fork dnSpyEx.
- Type
- Debugger + assembly editor
- Platform
- Windows (WPF desktop app)
- Licence
- GNU GPL v3
- Targets
- .NET Framework, .NET, Unity (Mono)