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
๐ŸŒ
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.
๐ŸŒ
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.
๐ŸŒ
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.
๐ŸŒ
Redgate Software
red-gate.com โ€บ products โ€บ reflector
Decompile Any .NET Code | .NET Reflector
Decompile, browse, and analyze any .NET assembly to C#, VB.NET, or IL. Use the standalone application to explore and navigate decompiled code. Get results as you type and find what you're looking for easily. Use your regular debugging techniques on any decompiled assemblies as if they were your own, using the Visual Studio debugger.
๐ŸŒ
Reddit
reddit.com โ€บ r/dotnet โ€บ .net decompiler compatible with visual studio code
r/dotnet on Reddit: .net decompiler compatible with visual studio code
July 25, 2023 -

Hello. A few weeks ago i got a software witch was compatible with VSC and it worked pretty good when you opened it, it decompile the files and you got them in visual. The thing is that I lost this software and i've been looking for it for a few days. Idk if any of you know this software or other that could help me do the decompilation.

๐ŸŒ
NDepend
blog.ndepend.com โ€บ home โ€บ .net โ€“ 7 decompiler compared (2025)
.NET - 7 Decompiler Compared (2025) - NDepend Blog
November 12, 2025 - This way the tools are collaborating both ways: Just right click any assembly, namespace, class, method or field in NDepend or Visual Studio (with the NDepend extension installed). There are 3 new menus to: ... Decompile and Compare: the code element is decompiled from both the baseline assembly and the current assembly and both text files obtained are compared...
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
Find elsewhere
๐ŸŒ
ByteHide
bytehide.com โ€บ home โ€บ the best .net decompiler comparison guide โœ… (free and paid)
The Best .NET Decompiler Comparison Guide โœ… (Free and Paid)
July 4, 2022 - ILSpy can be installed with the extension for Visual Studio extension or via a NuGet package for your own projects. It also has a special module to run the C# disassembler from a PowerShell. If you wish, you can consult the ILSpy repository on GitHub. DnSpy, the most popular free and open source .NET decompiler?
๐ŸŒ
GitHub
github.com โ€บ icsharpcode โ€บ ilspy-vscode
GitHub - icsharpcode/ilspy-vscode: ILSpy Visual Studio Code Extension and Service for Decompiling .NET Assemblies
ILSpy Visual Studio Code Extension and Service for Decompiling .NET Assemblies - icsharpcode/ilspy-vscode
Starred by 192 users
Forked by 42 users
Languages ย  C# 71.9% | TypeScript 23.0% | CSS 4.3%
Top answer
1 of 1
6

Actually, none of these answers are right.

Yeah, all the tools can decompile *.dll files into *.csproj file but none of them supports CLI or batch processing. You can save yourself the time with installations.

The best possible solution so far is use dotPeek, put all *.dll files into one folder and use Explore Folder option.

dotPeek will analyse the given folder and shows a tree of DLLs located inside the folder. You can generate csproj manually for every single dll which is loaded.


If you came across this post because you are looking answer how locate specific instruction in your or 3rd party dlls, specially a use of reflection, you can use this PowerShell script to decompile dlls into IL and look for the instruction (System.Reflection.Assembly::Load(string) for reflection).

Note

It is using Intermediate Language DisASseMbler (ILDASM) from .NET Framework SDK kit. Adjust the path accordingly to your version of SDK.

function Get-LibDump
{
    Param(
# Specifies a path to one or more locations. Wildcards are permitted.
    [Parameter(Mandatory=$true,
            Position=0,
            ParameterSetName="Basic",
            ValueFromPipeline=$true,
            ValueFromPipelineByPropertyName=$true,
            HelpMessage="Path to one or more locations.")]
    [ValidateNotNullOrEmpty()]
    [SupportsWildcards()]
    [ValidateScript({$_ | Test-Path})]
    [System.IO.FileInfo]
    $Path
    )
    process
    {
        $dumpFileFilePath = $Path.BaseName + '.il'
        $outFile = "C:\LibDump\$dumpFileFilePath"
        Start-Process -FilePath 'c:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.7.2 Tools\ildasm.exe' -ArgumentList "/UNICODE /OUT=`"$outFile`" `"$($Path.FullName)`"" -Wait
        "Dump from:`n$(Resolve-Path -Path $Path.FullName -Relative)" | Out-File -FilePath $outFile -Encoding:unicode -Append
    }
}

# Use
Get-ChildItem -Path $PathToLibFolder -Filter '*.dll' -File -Recurse | Get-LibDump
๐ŸŒ
Visual Studio Marketplace
marketplace.visualstudio.com โ€บ items
Refractor .NET assembly browser and decompiler - Visual Studio Marketplace
Extension for Visual Studio - Every .NET developer needs a .NET assembly browser. We do not need such tool for everyday usage. But we need to take a look at an unprotected compiled .NET assembly sometimes. One freeware tool well-known in the field is not a freeware anymore and .NET coders need ...
๐ŸŒ
Scott Hanselman's Blog
hanselman.com โ€บ blog โ€บ whats-better-than-ildasm-ilspy-and-dnspy-are-tools-to-decompile-net-code
What's better than ILDasm? ILSpy and dnSpy are tools to Decompile .NET Code - Scott Hanselman's Blog
... I've gone through several of these tools, but JetBrains' DotPeek is the winner for me. It has great integration with ReSharper so you can actually use the ctrl + click go to definition shortcut to decompile from within your code.
Top answer
1 of 8
13

Here is a good article about Reflector and how to integrate Reflector into Visual Studio.

Of particular interest is the Reflector.VisualStudio Add-In. This add-in, created by Jaime Cansdale, allows for Reflector to be hosted within Visual Studio. With this add-in, you can have Reflector integrated within the Visual Studio environment.

To get started, you will need to have the latest version of Reflector on your machine. Once you have downloaded Reflector, download the latest version of the Reflector.VisualStudio Add-In from http://www.testdriven.NET/reflector. The download contains a number of files that need to be placed in the same directory as Reflector.exe. To install the add-in, drop to the command line and run:

Reflector.VisualStudio.exe /install

After the add-in has been installed, you can start using Reflector from Visual Studio. Youโ€™ll notice a new menu item, Addins, which has a menu option titled Reflector. This option, when selected, displays the Reflector window, which can be docked in the IDE. Additionally, the add-in provides context menu support.

When you right-click in an open code file in Visual Studio, youโ€™ll see a Reflector menu item that expands into a submenu with options to disassemble the code into C# or Visual Basic, display the call graph or callee graph, and other related choices. The context menu also includes a Synchronize with Reflector menu item that, when clicked, syncs the object browser tree in the Reflector window with the current code file.

2 of 8
10

Try the open-source software http://ilspy.net/

๐ŸŒ
Stack Overflow
stackoverflow.com โ€บ questions โ€บ 77046309 โ€บ how-to-properly-decompile-c-sharp-dlls-for-debugging-with-visual-studio-2022-and
How to properly decompile c# dlls for debugging with Visual Studio 2022 and .net 4.8 - Stack Overflow
In Virual Studio 2022 I have a c# .net 4.8 project that references a dll for which I do not have the source code. I want to debug through the decompiled dll code. The dll has a corresponding .pdb file included in the same directory. ... With F12 I can view decompiled code. However, when I start debugging (F5) and try to step in (F11) into the dll, Visual ...
๐ŸŒ
Visual Studio Marketplace
marketplace.visualstudio.com โ€บ items
.NET Reflector Visual Studio Extension - Visual Studio Marketplace
Extension for Visual Studio - Integrates .NET Reflector into Visual Studio to allow you to seamlessly debug into third-party code and assemblies, even if you don't have the source code for them. Visit www.reflector.net for more i
๐ŸŒ
VB Decompiler
vb-decompiler.org
VB Decompiler: Visual Basic and .NET Disassembler & Source Code Recovery
VB Decompiler is the perfect source code recovery solution for Visual Basic 5.0/6.0, Visual Basic .NET, and Visual C# applications. Fast and powerful x86, x64 and MS IL disassemblers for Visual Studio 6 and Visual Studio .NET compiled files.
๐ŸŒ
C# Corner
c-sharpcorner.com โ€บ UploadFile โ€บ efa3cf โ€บ decompile-an-assembly-in-C-Sharp
Decompile An Assembly In C#
October 25, 2023 - 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.