Method Compile
Compile(bool?, bool, bool, TextWriter)
When implemented by a class, initializes script engine and compiles the script.
bool Compile(bool? copyReferences = null, bool syntaxCheckOnly = false, bool emitAssembly = true, TextWriter logger = null)
Parameters
copyReferences
bool?Specifies 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.
logger
TextWriterSpecifies logger to write build messages
Returns
- bool
True if succeed, otherwise false.