public interface ICodeCompiler
|
ICodeCompiler provides the capability to invoke compilation with specified parameters at runtime and access information related to compilation, including the result code, and any errors and warnings the compiler returns. File and line number information can also be reported for each error or wanring, so that user code to locate the code generating an error or warning can be implemented.
Each compilation invoking method accepts a CompilerParameters object that indicates compiler settings, and returns a CompilerResults object to indicate the results of compilation.
Compiler developers should provide an implementation of this interface to support dynamic compilation.
CompileAssemblyFromDom | Creates an assembly based on the System.CodeDom tree contained in the specified CodeCompileUnit, using the specified options. |
CompileAssemblyFromDomBatch | Creates an assembly based on the System.CodeDom trees contained in the specified CodeCompileUnit, using the specified options. |
CompileAssemblyFromFile | Creates an assembly based on the specified options and file name. |
CompileAssemblyFromFileBatch | Creates an assembly based on the specified options and file names. |
CompileAssemblyFromSource | Creates an assembly based on the specified options and source. |
CompileAssemblyFromSourceBatch | Creates an assembly based on the specified options and sources. |
CompilerResults CompileAssemblyFromDom( |
options
compilationUnit
CompilerResults CompileAssemblyFromDomBatch( |
options
compilationUnits
CompilerResults CompileAssemblyFromFile( |
options
fileName
CompilerResults CompileAssemblyFromFileBatch( |
options
fileNames
CompilerResults CompileAssemblyFromSource( |
options
source
CompilerResults CompileAssemblyFromSourceBatch( |
options
sources