I understand that C# source code is converted to Common Intermediary Language that is executed by Common Language Runtime. It is just like Java source code that is converted to byte code that is executed by Java Virtual Machine.
My question is in the context of a Console Application in Visual Studio. Let's say I create a simple Hello World console application in Visual Studio.
I then build the project ConsoleApp1. I understand building is compiling into assemblies like DLL or EXE. In this case I will get EXE as my Program.cs is a simple main function with Hello World printing.
I will then run the EXE in command prompt.
- Where is the Common Language Runtime in this process?
- Is it responsible for executing the assembly? But then did I not execute the EXE thru command prompt (meaning I just executed some native code as it is without help of CLR)?