Common Interpreted Language 编译器的源代码是否位于 .NET 的 CLR 中

Is the source code to Common Interpreted Language compiler located within the CLR in .NET

我知道 .NET 兼容的源代码首先编译为 CIL,然后由 CLR 中的 JIT 编译器编译为本机代码,但我想知道第一次编译是在 CLR 中还是在 Visual Studio 环境由一个单独的编译器。

语言特定的编译器将代码转换为IL(或CIL,或MSIL)并将其打包为.dll或.exe file/s,最终由CLR执行。

下图说明了为执行您的代码而执行的步骤。

如果需要,可以使用ILSpy or what Microsoft delivers as part of the .NET framework (ILDasm)反汇编.dll或.exe并查看IL代码。 (这些不是唯一的反汇编程序,但它们是免费的)