Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using Reflector To Create VisualStudio Project

Tags:

c#

reflector

I have a .exe app which I want to understand better - I can see it in reflector

Is there any way to get reflector to create a VS project with the code so I can view it properly in Visual Studio?

like image 880
Jack Kada Avatar asked Mar 13 '10 12:03

Jack Kada


People also ask

How do I open reflector in Visual Studio?

NET Reflector VSPro into Visual Studio and open your project, then go to the . NET Reflector menu item and click on Choose Assemblies to Debug. Select the assemblies you want to debug, and . NET Reflector VSPro will immediately decompile those assemblies for you.

What does .NET Reflector do?

NET Reflector can be used to track down performance problems and bugs, browse classes, and maintain or help become familiar with code bases. It can also be used to find assembly dependencies, and even windows DLL dependencies, by using the Analyzer option.

How do I decompile a DLL using NET Reflector?

net reflector doesn't allow to add your dll to decompile, I recommend you to write a new post to Relector . NET forum:http://forums.reflector.net/ for a better and quicker response. In addition, we can use other tools to decompile your Dll: 1.


2 Answers

Nothing special is needed, it is built into Reflector, albeit not very discoverable. Right-click the assembly in the left pane and choose Export. You'll get a chance to change the output directory. Click OK and Reflector starts decompiling the code, creating a source file for each individual class. And creates a .csproj file which you can open in Visual Studio.

like image 165
Hans Passant Avatar answered Nov 15 '22 21:11

Hans Passant


Check out Jason Bock's FileGenerator, it might be what you are looking for.

like image 44
Jason Haley Avatar answered Nov 15 '22 21:11

Jason Haley