Woman working with a laptop while drinking coffee at a cafe

How to Open a de4dot Cleaned Assembly in ILSpy

After de4dot finishes, the next step is often to read the cleaned code, and ILSpy is a friendly tool for that job. It lets you browse types, methods, and resources without running the program. This guide shows a simple workflow that works well for most cleaned assemblies.

Open the cleaned file, not the original

Find the output file that de4dot created, which usually sits beside the original with a cleaned suffix in its name. Open that file in ILSpy, and keep the original closed for comparison only. If you open the original by mistake, you will see the protected code again, which can make it look as if cleaning did not work.

Browse by type and method

Use the tree view on the left to move through namespaces, types, and methods. Start with the main window or entry class, then follow calls into helpers when you need more detail. Searching for a method name or a readable string is often faster than reading an entire assembly from start to finish.

Check strings and resources

Look for user facing text, such as labels and error messages, to confirm that string recovery worked. If a resource looks incomplete, note which part is affected before trying another tool. ILSpy can also show embedded resources, which helps you understand images, text, and other data the program uses.

If ILSpy cannot load the file

First confirm that the file is a .NET assembly and that its dependencies are in the same folder. A missing library can cause a load error even when de4dot completed without a warning. If the file still will not open, test whether it opens in another decompiler, and compare the results before changing your de4dot options.

For the step before this one, read how to decompile a de4dot cleaned assembly. For a different combined workflow, read how to use de4dot with dnSpy.

Frequently Asked Questions

Do I need to run the cleaned program to read it in ILSpy

No, ILSpy reads the assembly statically, so you can inspect code and resources without executing the program.

Why does ILSpy show the original protected code

You may have opened the original file instead of the cleaned output, so check the file name and location carefully.

What should I do if a type will not expand

Check for missing dependencies, then try reloading the file after placing related libraries in the same folder.

Can ILSpy edit the cleaned code

ILSpy is mainly for reading and analysis, so use it to understand the code before deciding on any separate editing step.

Is ILSpy a replacement for de4dot

No, de4dot cleans the protection first, and ILSpy then presents the cleaned result in a readable form.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top