Using Reflector To Create VisualStudio Project

社会主义新天地 提交于 2019-11-27 17:41:04

问题


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?


回答1:


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.




回答2:


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




回答3:


I've used Denis Bauer's Reflector.FileDisassembler http://www.denisbauer.com/NETTools/FileDisassembler.aspx. It works well enough to compile and step through the code.




回答4:


Yea there is, but it doesn't come cheap http://www.remotesoft.com/salamander/

I have used it to decompile assembly, but I've never used the feature to decompile it into a project so can't give you a review on that. The quality of the decompiler will match the one in reflector.

They also be some legal issues associated with decompiling exe into project - and source for recompilation, so use it with care.



来源:https://stackoverflow.com/questions/2438309/using-reflector-to-create-visualstudio-project

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!