CSharp Tools - Compiler

本文介绍了如何在命令行中使用csc.exe编译C#代码,讲解了C#编译器将源代码编译为MSIL并由.NET运行时管理的过程。讨论了JIT编译、编译错误CS1619的解决方法,以及如何编译为exe、dll文件,包括设置调试模式、生成DLL和引用不同源文件的方法。
摘要由CSDN通过智能技术生成

/*

Author: Jiangong SUN

*/

CSharp compiler is invoked at the command line using csc.exe file located <C:\Windows\Microsoft.NET\Framework\v2.0.50727>.

CSharp Compiler compiles CSharp code to MSIL(Intermediate Language) at compilation time in CLR (Common Language Runtime).  The compiled code(exe or dll) is managed code, and is managed by Garbage Collector(GC).

When you execute the exe or dll file, it will be compiled by JIT(Just-In-Time) compiler, and generate native machine code for specific CPU.


When you want to compile a class using csc.exe you may encoun

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值