Describe how a .Net application is compiled and executed - C#.NET

Describe how a .Net application is compiled and executed.

From the source code, the compiler generates Microsoft Intermediate Language (MSIL) which is further used for the creation of an EXE or DLL. The CLR processes these at runtime. Thus, compiling is the process of generating this MSIL.

The way you do it in .Net is as follows:
- Right-click and select Build / Ctrl-Shift-B / Build menu, Build command
- F5 - compile and run the application.
- Ctrl+F5 - compile and run the application without debugging.

Compilation can be done with Debug or Release configuration. The difference between these two is that in the debug configuration, only an assembly is generated without optimization. However, in release complete optimization is performed without debug symbols.
What is an Event? Define Delegate - C#.NET
C#.NET - What is an Event? Define Delegate - Delegates are kind of similar to the function pointers. But they are secure and type-safe...
C#.NET Assembly manifest
C#.NET - What is Assembly manifest? - The manifest of an assembly contains assembly's data like version...
What is GAC (global assembly cache)? - C#.NET
C#.NET - What is GAC (global assembly cache)? - GAC, global assembly cache is an area of memory reserved to store the assemblies...
Post your comment