本文只是可以让大家摆脱csc的约束,在Win界面上完成C#编译编译.
在C#编译过程中你必须以下面的步骤完成:
1.建立一个CSharpCodeProvider 实例(如果是使用Visual Basic则使用VBCodeProvider)
2.包含接口ICodeCompiler
3.提供CompilerParameters的参数
4.使用CompileAssemblyFromSource方法编译。
5.运行CompilerResults
6.执行C#编译好的程序
本文只是可以让大家摆脱csc的约束,在Win界面上完成C#编译编译.
在C#编译过程中你必须以下面的步骤完成:
1.建立一个CSharpCodeProvider 实例(如果是使用Visual Basic则使用VBCodeProvider)
2.包含接口ICodeCompiler
3.提供CompilerParameters的参数
4.使用CompileAssemblyFromSource方法编译。
5.运行CompilerResults
6.执行C#编译好的程序