C# Class NanoByte.Common.Native.CompilerUtils

Provides helper methods for compiling .NET code at runtime.
Exibir arquivo Open project: nano-byte/common

Public Methods

Method Description
CompileCSharp ( [ compilerParameters, [ code, [ manifest ) : void

Compiles a string of C# code using the newest C# compiler available on the system.

Private Methods

Method Description
GetCSharpCompiler ( this compilerParameters, string manifestFilePath ) : CodeDomProvider

Detects the best possible C# compiler version and instantiates it.

NewCSharpCodeProvider ( string version ) : CodeDomProvider

Method Details

CompileCSharp() public static method

Compiles a string of C# code using the newest C# compiler available on the system.
public static CompileCSharp ( [ compilerParameters, [ code, [ manifest ) : void
compilerParameters [ The compiler configuration (e.g. output file path).
code [ The C# code to compile.
manifest [ The contents of the Win32 manifest to apply to the output file. Will only be applied if a C# 3.0 or newer compiler is available.
return void