Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

.NET and output file extension

Tags:

cil

Why Visual Studio compiles an application to an executable if it's in the MSIL format? Shouldn't it be like java that compiles the code to a .class file?

like image 891
Gabriel Avatar asked Jan 26 '10 00:01

Gabriel


People also ask

What is an output file extension?

The OUTPUT file type is primarily associated with Apple II operating system. OUTPUT. File extension: OUTPUT. File type: Golden Orchard Apple II CD Rom file.

What is the file extension of C#?

Files with . cs extension are source code files for C# programming language. Introduced by Microsoft for use with the .

What are output files used for?

Output files store data for a single variable when the the data is Saved on the Add or Edit screen for the last record in a QW application data file. This is useful for sharing information between QW applications.

What are .in files?

An IN file is a generic file used by some spyware programs to track activity on a computer. If you cannot verify an IN file's legitimacy or source, you should check it with an anti-spyware program. Some examples of spyware files with a ".


1 Answers

a .NET "executable" is really a tiny _un_managed stub executable that creates an AppDomain, instantiates your startup .NET object and calls into it.

a .NET dll would be the equivalent of a java .class

Edit: -----

Jb Evain points out in comments that .NET dlls also contain an unmanaged stub. The stub just jumps to the appropriate entrypoint in mscoree.dll that does the actual work. CorExeMain for exe's and CorDllMain for dll's.

like image 182
John Knoeller Avatar answered Oct 12 '22 18:10

John Knoeller