Table of Contents

Method Compile

Namespace
Alternet.Scripter
Assembly
Alternet.Scripter.v10.dll

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 bool

Specifies if compilation performs syntax check only, without generating assemblies.

emitAssembly bool

Specifies that compilation needs to write assembly bytes.

logger TextWriter

Specifies logger to write build messages

Returns

bool

True if succeed, otherwise false.