microsoft dotnet logo transparent background

Decode .EXE to get intermediate language (IL)code and C# code using Visual Studio on OSX/MAC


Instructions :

1- Run Visual Studio and click on files > open
open exe file visual studio

To create a visual studio console app project using c# visit : Create console app!

To create .EXE file using terminal visit : Generate .EXE!

2- Choose the .EXE file you wish to decode
using finder to fetch files for visual studio
3- You will see the following screen having Assembly Browser opened
basic visual studio page with assembly browser
4- Click from assembly browser's side dropdown menu program>test>program, make sure visibility is set to all members, and language is IL or CS from the dropdown, located at header toolbar
visual studio generating intermediate code or assembly code
5- You can generate C# code from the language selector dropdown. Just select C#
visual studio code generator language preference
6- The system will generate C# code for you from your .EXE file
visual studio generating c# from exe