Reflector and its add-in FileDisassembler.

Reflector will allow to see the source code. FileDisassembler will allow you to convert it into a VS solution.

Answer from GEOCHET on Stack Overflow
Top answer
1 of 10
210

Reflector and its add-in FileDisassembler.

Reflector will allow to see the source code. FileDisassembler will allow you to convert it into a VS solution.

2 of 10
176

When Red Gate said there would no longer be a free version of .Net Reflector, I started using ILSpy and Telerik's JustDecompile. I have found ILSpy to decompile more accurately than JustDecompile (which is still in Beta). Red Gate has changed their decision and still have a free version of .Net Reflector, but now I like ILSpy.

From the ILSpy website (https://github.com/icsharpcode/ILSpy/):

ILSpy is the open-source .NET assembly browser and decompiler.

ILSpy Features

  • Assembly browsing
  • IL Disassembly
  • Decompilation to C#
  • Supports lambdas and 'yield return'
  • Shows XML documentation
  • Saving of resources
  • Search for types/methods/properties (substring)
  • Hyperlink-based type/method/property navigation
  • Base/Derived types navigation
  • Navigation history
  • BAML to XAML decompiler
  • Save Assembly as C# Project
  • Find usage of field/method
  • Extensible via plugins (MEF)

Update:

April 15, 2012, ILSpy 2.0 was released. New features compared with version 1.0:

  • Assembly Lists
  • Support for decompiling Expression trees
  • Support for lifted operatores on nullables
  • Decompile to Visual Basic
  • Search for multiple strings separated by space (searching for "Assembly manager" in ILSpy.exe would find AssemblyListManager)
  • Clicking on a local variable will highlight all other occurrences of that variable
  • Ctrl+F can be used to search within the decompiled code view

Update:

  • ILSpy 2.1 supports async/await decompilation
🌐
Microsoft
devblogs.microsoft.com › dev blogs › visual studio blog › decompilation of c# code made easy with visual studio
Decompilation of C# code made easy with Visual Studio - Visual Studio Blog
February 13, 2020 - Have you ever experienced an exception occurring in a 3rd party .NET assembly but had no source code to figure out why? You can now use Visual Studio to decompile managed code even if you don't have the symbols, allowing you to look at code, inspect variables and set breakpoints.
🌐
Quora
quora.com › How-can-I-decompile-an-exe-file-into-a-visual-studio-project-without-getting-so-many-errors-Or-maybe-someone-can-help-me-to-do-that
How to decompile an exe file into a visual studio project without getting so many errors? Or maybe someone can help me to do that - Quora
Answer (1 of 6): Assuming the .exe file is one compiled from C or C++, it is very unlikely that you will get anything resembling good source code. Reverse-engineering small pieces of code is sort of doable by hand, but for larger projects, it just becomes impossible. This program: [code]#inclu...
🌐
Microsoft Learn
learn.microsoft.com › en-us › visualstudio › debugger › decompilation
Decompile .NET code while debugging - Visual Studio (Windows) | Microsoft Learn
Starting in Visual Studio 2022 version 17.7, the Visual Studio Debugger supports autodecompilation of external .NET code. You can autodecompile when stepping into external code or when using the Call Stack window. If you step into code that has been implemented externally, the debugger automatically decompiles it and displays the current point of execution...
🌐
GitHub
github.com › icsharpcode › ILSpy
GitHub - icsharpcode/ILSpy: .NET Decompiler with support for PDB generation, ReadyToRun, Metadata (&more) - cross-platform!
ILSpy is the open-source .NET assembly browser and decompiler. Download: latest release | latest CI build (master) | Microsoft Store (RTM versions only) Aside from the WPF UI ILSpy (downloadable via Releases, see also plugins), the following other frontends are available: Visual Studio 2022/2026 ship with decompilation support for F12 enabled by default (using our engines v8.2 and v9.1 respectively).
Starred by 24.2K users
Forked by 3.6K users
Languages   C# 98.5% | JavaScript 0.6% | PowerShell 0.3% | Visual Basic .NET 0.2% | HTML 0.1% | Less 0.1%
🌐
JetBrains
jetbrains.com › decompiler
dotPeek: Free .NET Decompiler & Assembly Browser by JetBrains
May 26, 2021 - dotPeek is a free tool based on ReSharper. It can reliably decompile any .NET assembly into C# or IL code.
Find elsewhere
🌐
C# Corner
c-sharpcorner.com › UploadFile › efa3cf › decompile-an-assembly-in-C-Sharp
Decompile An Assembly In C#
October 25, 2023 - But I am going to explain only 2 decompilers ILDasm & dotpeek. Because both are very popular and widely used. The IL Disassembler (Ildasm.exe) is a Microsoft product and an in-built disassembler for .NET, which is automatically installed with Visual Studio.
🌐
Anirudhmergu
anirudhmergu.com › home › c# › reverse engineer a windows .exe application to get its source code and vs project
Reverse Engineer a Windows .exe Application to get its source code and VS Project – Blog by Anirudh Mergu
In this tutorial, I am going to show you how to decompile or reverse engineer Windows executable file (.exe and .dll files) and get the source code back. This tutorial is going to be easy-peasy for a beginner to learn. If you’re a fast-learner, please feel free to skim the text. For this tutorial, I am creating a dummy project which displays “Hello world” in Visual Studio ...
🌐
Quora
quora.com › Can-I-decompile-an-EXE-file-back-into-a-visual-basic-project
Can I decompile an EXE file back into a visual basic project? - Quora
There are a few Decompilers available for this very purpose. Examples of these are CodeReflect, and JustDecompile. However, you should be aware that if this is industrial code, or closed source, the source code will be obfuscated.
🌐
Reddit
reddit.com › r/dotnet › wanting to decompile an .exe, edit it and compile it again
r/dotnet on Reddit: Wanting to decompile an .exe, edit it and compile it again
May 27, 2019 -

Hi there,

I've been trying to edit an .exe file.

However I used DotPeek to decompile it, found the part of the code that needed to be edited (in C# btw).

And now ive edited the code via notepad++ and I want to compile it again.

Here's where the fun began, Visual Studio gives me more than 150 errors when trying to build/rebuild and if I try DNspy it also gives me the same errors.So I thought maybe it is the way I edited the code, after decomping and then instantly recomping still the same issues occoured.

I would love some help and or suggestions about maybe different tactics or software

Thanks in Advance!

Edit:

https://paste.pics/8GB4I The lines 208-230 need to be edited for me

🌐
Edopedia
edopedia.com › blog › best-exe-decompilers
20 Best EXE Decompilers [cy] (Ranked and Reviewed)
September 15, 2025 - Integrate With Windows Explorer ... ... VB Decompiler is an advanced tool that can decompile programs (EXE, DLL, or OCX) written in Visual Basic 5.0/6.0 and disassemble programs based on .NET technology....
🌐
VB Decompiler
vb-decompiler.org › products.htm
VB Decompiler Features: Native Code, P-Code & .NET Support
Explore VB Decompiler features: restore forms, user controls, and algorithms from EXE/DLL. Compare Lite, Pro, and Enterprise editions for code recovery and forensics.
🌐
RustemSoft
visual-studio-decompiler.soft112.com
Visual Studio Decompiler 7.3.8 Free Download
Visual Studio Decompiler - Skater .NET obfuscator has been expanded with .NET assembly browser and decompiler interface that converts executable files (.EXE or .DLL) from Intermediate...
🌐
Redgate Software
red-gate.com › products › reflector
Red-gate
Use F12 to “Go To Definition”, F9 to “Set Breakpoints”, and F11 to “Step Into” any decompiled code. .NET Reflector supports C#7, .NET 4.7.2, and .NET Core and Standard. .NET Reflector VSPro adds the Reflector Object Browser into Visual Studio.
🌐
VB Decompiler
vb-decompiler.org
VB Decompiler: Visual Basic and .NET Disassembler & Source Code Recovery
Tracing engine: Step-by-step code execution emulation for deep Native Code analysis (Professional/Ultimate editions) Complete form restoration - decompiles forms (frm, frx) and user controls (ctl, ctx) with all properties · API calls restoration - recovers prototypes of most standard Win32 APIs automatically · Full support for Visual Studio 2022 and earlier versions using .NET Framework or .NET Core:
🌐
Microsoft Learn
learn.microsoft.com › en-us › answers › questions › 344936 › help-decompile-exe-back-to-vb-source-code
Help. Decompile EXE back to VB source code? - Microsoft Q&A
I know this post is old, but recently with Claude 3.7 a vb .exe was decompiled and re-written into python. Maybe Claude could help in cases like these? ... Best visual decompiler is dotPeek from JetBrains and it's free.