Method Compile
Compile(bool, bool, bool)
Initializes script engine and compiles the script.
public override bool Compile(bool copyReferences = true, bool syntaxCheckOnly = false, bool emitAssembly = true)
Parameters
copyReferences
boolSpecifies if all required assemblies should be copied to the output location
syntaxCheckOnly
boolSpecifies if compilation performs syntax check only, without generating assemblies.
emitAssembly
boolSpecifies that compilation needs to write assembly bytes.
Returns
- bool
True if succeed, otherwise false.