private CompilerResults Compile()
{
CodeDomProvider provider = new CSharpCodeProvider();
ICodeCompiler compiler = provider.CreateCompiler();
CompilerParameters parameters = new CompilerParameters();
parameters.WarningLevel = 4;
parameters.GenerateInMemory = true;
parameters.GenerateExecutable = false;
parameters.ReferencedAssemblies.Add("System.Web.Services.dll");
parameters.ReferencedAssemblies.Add("System.Xml.dll");
parameters.ReferencedAssemblies.Add("System.dll");
return compiler.CompileAssemblyFromSource(parameters, textBoxSource.Text);
}
C# Compiler
Заначка для своего собственного C# компилятора
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment