Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is the MSIL file after compilation of a C# program in .Net?

Tags:

java

c#

.net

I am a Java programmer. I am wondering why CSC is generating an exe file instead of generating some MSIL file as Java does (.class files). Is it that .exe is just an extension and the file is actually in MSIL?

like image 264
DDC Avatar asked Sep 17 '25 06:09

DDC


1 Answers

Is it that .exe is just an extension and the file is actually in MSIL?

Yes.

Microsoft has a disassembler (Ildasm), that will show you the IL and a disassembled version of the file.

like image 52
Rich O'Kelly Avatar answered Sep 19 '25 18:09

Rich O'Kelly