C# Class CSScriptCompilers.CSCompiler

C#+XAML compiler. This class is capable of compiling (with MSBuild) dynamically created VS C# WPF project based on cs file(s)
Inheritance: ICodeCompiler
显示文件 Open project: oleg-shilo/cs-script Class Usage Examples

Private Properties

Property Type Description
CompileAssemblyFromFileBatchImpl System.CodeDom.Compiler.CompilerResults
GetProjTemplateContent string
GetSolutionTemplateContent string
IsAppXAML bool
RunApp string

Public Methods

Method Description
CSCompiler ( object options ) : System
CSCompiler ( string version ) : System
CompileAssemblyFromDom ( CompilerParameters options, CodeCompileUnit compilationUnit ) : CompilerResults
CompileAssemblyFromDomBatch ( CompilerParameters options, CodeCompileUnit compilationUnits ) : CompilerResults
CompileAssemblyFromFile ( CompilerParameters options, string fileName ) : CompilerResults
CompileAssemblyFromFileBatch ( CompilerParameters options, string fileNames ) : CompilerResults
CompileAssemblyFromSource ( CompilerParameters options, string source ) : CompilerResults
CompileAssemblyFromSourceBatch ( CompilerParameters options, string sources ) : CompilerResults

Private Methods

Method Description
CompileAssemblyFromFileBatchImpl ( CompilerParameters options, string fileNames ) : CompilerResults
GetProjTemplateContent ( ) : string
GetSolutionTemplateContent ( ) : string
IsAppXAML ( string file ) : bool
RunApp ( string workingDir, string app, string args ) : string

Method Details

CSCompiler() public method

public CSCompiler ( object options ) : System
options object
return System

CSCompiler() public method

public CSCompiler ( string version ) : System
version string
return System

CompileAssemblyFromDom() public method

public CompileAssemblyFromDom ( CompilerParameters options, CodeCompileUnit compilationUnit ) : CompilerResults
options System.CodeDom.Compiler.CompilerParameters
compilationUnit System.CodeDom.CodeCompileUnit
return System.CodeDom.Compiler.CompilerResults

CompileAssemblyFromDomBatch() public method

public CompileAssemblyFromDomBatch ( CompilerParameters options, CodeCompileUnit compilationUnits ) : CompilerResults
options System.CodeDom.Compiler.CompilerParameters
compilationUnits System.CodeDom.CodeCompileUnit
return System.CodeDom.Compiler.CompilerResults

CompileAssemblyFromFile() public method

public CompileAssemblyFromFile ( CompilerParameters options, string fileName ) : CompilerResults
options System.CodeDom.Compiler.CompilerParameters
fileName string
return System.CodeDom.Compiler.CompilerResults

CompileAssemblyFromFileBatch() public method

public CompileAssemblyFromFileBatch ( CompilerParameters options, string fileNames ) : CompilerResults
options System.CodeDom.Compiler.CompilerParameters
fileNames string
return System.CodeDom.Compiler.CompilerResults

CompileAssemblyFromSource() public method

public CompileAssemblyFromSource ( CompilerParameters options, string source ) : CompilerResults
options System.CodeDom.Compiler.CompilerParameters
source string
return System.CodeDom.Compiler.CompilerResults

CompileAssemblyFromSourceBatch() public method

public CompileAssemblyFromSourceBatch ( CompilerParameters options, string sources ) : CompilerResults
options System.CodeDom.Compiler.CompilerParameters
sources string
return System.CodeDom.Compiler.CompilerResults