dotPeek Web Help

The ultimate step in exploring an assembly is exporting it to a Visual Studio project so that you can browse the source code, build and debug it.

Independently of the original programming language, which was used in the assembly, the exported project is created using C#.

To export an assembly to a Visual Studio project
  1. Select an assembly in the Assembly Explorer and click Export to Project export_to_project_dotPeek on the toolbar, or choose Export to Project in the context menu.
  2. In the Export to Project dialog box that appears, specify a destination folder where the project is exported. In this folder, the wizard will create a subfolder for your project.

    Note

    If the [DestinationFolder]/[ProjectSubfolder] is not empty, dotPeek detects it and suggests you to override the existing files, clean the folder before export, or choose another folder.

  3. Change the project name if necessary.
  4. Tick Create *.sln file if you want a solution to be created for the project.

    Note

    Visual Studio compatibility for the created solution file depends on the .NET Framework version used in the assembly. For instance, if the assembly uses .NET Framework 4.5 a Visual Studio 2012 solution is created.

  5. Tick Add project to Assembly Explorer if you want to add the decompiled project to the Assembly Explorer and study project structure, files, etc.
  6. Tick Open project in Visual Studio if you want to open the project right away.
  7. Click Export to finish.

See Also

Procedures:

Reference: