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
copyReferencesbool?Specifies if all required assemblies should be copied to the output location
syntaxCheckOnlyboolSpecifies if compilation performs syntax check only, without generating assemblies.
emitAssemblyboolSpecifies that compilation needs to write assembly bytes.
loggerTextWriterSpecifies logger to write build messages
Returns
- bool
True if succeed, otherwise false.