In our
recent post, we announced the release of ReSharper version 8 of EAP, mentioning improved support for decompilation. Today we are pleased to announce that the next version of dotPeek, our free decompiler, has also reached the EAP stage. Here are some new features that you can try today.
Export assembly to project
Many of our users
asked us to add the ability to save the decompiled assembly in the format of a Visual Studio project that is ready for compilation. We took into account your wishes and now you can right-click on the decompiled assembly and select the option “export to project”:

')
All you need to do is provide the program with a way to save the project and its name. You can also generate a Visual Studio solution (.sln file) if you need it.

The dialog above allows you to generate a project (.csproj) containing all decompiled files. dotPeek is very smart when it comes to creating projects — here are some optimizations that it implements:
- If PDB files are available, dotPeek restores the file structure and folder structure of the original project;
- If unsafe code is used in a project, the generated project is configured to allow its use;
- The type of assembly is detected automatically and, accordingly, is configured in the project.
By the way, dotPeek also keeps track of the export history of projects. If you try to export the project again, it will offer you the following dialog:

Support for project files in Assembly Explorer
In order to simplify the orientation in the newly generated code, Assembly Explorer supports instant loading of the generated project. This option is available as one of the check boxes (
Add project to Assembly Explorer ) in the screenshot above.

Go to Everything
Like ReSharper, dotPeek supports the new paradigm, so pressing Ctrl + T now allows you to navigate to files, symbols, and types in the same menu:

And something else
Here are some more features that have become available:
- dotPeek now saves the layout of windows, and also keeps a list of previously opened files;
- Like Visual Studio, dotPeek allows you to add bookmarks and navigate between them;
- In addition to the MSI installer, dotPeek is also available as a single EXE file.
If you want to test all the above features
immediately , then
download the EAP and try it!
Program with pleasure!