Extract C# Code From .exe
Im facing a Problem my HDD died开发者_开发问答 and I lost many application which I made on Visual C# But I have an exe for most of them as backup but no codes is there a program that extract the code from an .exe
Use
.NET Reflector for this
.NET Reflector enables you to easily view, navigate, and search through, the class hierarchies of .NET assemblies, even if you don't have the code for them. With it, you can decompile and analyze .NET assemblies in C#, Visual Basic, and IL.
Edit
Reflector.FileDisassembler
The Reflector.FileDisassembler is a little add-in for the new version of Lutz Roeder's .NET Reflector that you can use to dump the decompiler output to files of any Reflector supported language (C#, VB.NET, Delphi). This is extremely useful if you are searching for a specific line of code as you can use VS.NET's "Find in Files" or want to convert a class from one language to another.
Use .net Reflector. Naturally, extracting comments is impossible but you can get your sources back. You also won't be able to get the Visual Studio designer to work with it. But it's better than losing everything? I had to do this for one of my class libraries the other day.
I've had luck with IL Spy as well, though I don't know if it has a module to dump source files.
ILSpy is the open-source .NET assembly browser and decompiler.
Development started after Red Gate announced that the free version of .NET Reflector would cease to exist by end of February 2011.
http://wiki.sharpdevelop.net/ilspy.ashx
精彩评论