techmad
techmad

Reputation: 933

Decompiling .NET assemblies to Project structure

I have an existing .NET dll. I want to decompile the source code and generate a project sturcture. Through .NET reflector, I could able to generate the source code, but noway I can save the source code to a Project structure. Is there any other tool which can generate source code along with the Project structure for a .NET dll?

Upvotes: 1

Views: 1326

Answers (3)

ManiKM
ManiKM

Reputation: 11

The File Generator is a Reflector add-in which is capable of generating source code files and project files, ready to open in Visual Studio.

Upvotes: 1

Erik Funkenbusch
Erik Funkenbusch

Reputation: 93424

A decompiler is not a perfect solution. There are many things that cannot be properly reverse engineered, but will instead be reversed into a compatible (but not exactly the same) method.

This is because optimizations alter the code, and some kinds of language constructs are just syntactic sugar and it's hard for the decompiler to know if you used the sugar or did it manually.

I don't believe that when a project is compiled, that the project structure is saved in an easy to access way. It may be possible if you have a pdb file... but without one, probably not.

Upvotes: 0

Valamas
Valamas

Reputation: 24719

This has become available recently. However, I have not used it.

http://www.jetbrains.com/decompiler/

Upvotes: 0

Related Questions