C#将类文件编译为dll文件

来源:互联网 发布:js style.border 编辑:程序博客网 时间:2024/05/19 00:43
 输入csc/?查看编译选项.注意:要将命名空间也写进csc里啊.
/out:<file> 输出文件名(默认值:   包含主类的文件或第一个文件的基名称)   
/target:exe 生成控制台可执行文件(默认)   (缩写:   /t:exe)   
/target:winexe 生成   Windows   可执行文件   (缩写:   /t:winexe)   
/target:library 生成库   (缩写:   /t:library)   
/target:module  生成能添加到其他程序集的模块   (缩写:   /t:module)   
/define:<symbol list>  定义条件编译符号   (缩写:   /d)   
/doc:<file> 要生成的   XML   文档文件
原创粉丝点击