How To Open Source Code Of Exe Files

For most developers, a toolbox is not just a project but an entire set of resources as well. It may also be an entire open source library, an invaluable collection of code that an entire community can build upon together. When it comes to open source code of exe files there is no better source than GitHub.

Have you ever liked an application to the point that you want to view its source code? Well, I have been there. For .Net executable files and libraries such as DLL files, viewing the source code is a piece of cake as long as the code is not obfuscated by the developer. In this article, we are going to view the source code of a .Net DLL file as well as obfuscating it. The process of viewing the source code of an executable file is the same.

To create a DLL you can check this article of mine

Viewing source code using JetBrains dotPeek

JetBrains dotPeek decompiles an executable file or DLL/.exe file written using .Net to their equivalent C# code.

Installing dotPeek

  • Download JetBrains dotPeek from JetBrains
  • Run the setup and install free .Net decompiler and assembly tools.

Decompiling the code

  1. Open dotPeek
  2. File -> Open -> navigate to your project -> select your .DLL/.exe file
  3. Your project will be listed in the projects on our dotPeek under Assembly Explorer
  4. Click your project and find the classes to view the source code

My file is called MyCalculator.dll and bellow is the source code

Obfuscating the source code

For more obfuscating tools both open source and paid versions check this NuGet obfuscator article

In this article, I’m using one from the article, and its called Eazfuscator.NET to hide source code for a C# application. I will be using a simple C# calculator. You need to download and install Eazfuscator.NET here.

NB: Eazfuscator.NET is not free since version 3.4 but it has a trial version and the last free version 3.3 does not support .Net 4.5 and higher

Steps for hiding the source code

  1. Open your application in Visual Studio
  2. Change your project from debug mode to Release modeAlt Text
  3. Open Eazfuscator.NET then drag and drop your project from solution explorer to protect itAlt Text
  4. Rebuild your project and click reload all

If you open and check your .exe/.DLL file using dotPeek you will notice that your source code is now obfuscated.


You open source the extensibility of a new product, or say you release a new version of an existing tool. First, you might want to release code under an open-source license to give your product a certain level of credibility. Open sourcing code also can be the best way to build a sustainable business model.

Similar Posts


No Comment.