Table of Contents

Class RoslynScriptHost

Namespace
Alternet.Scripter.Roslyn
Assembly
Alternet.Scripter.v9.dll

Provides methods and properties to support a Roslyn-based script host.

public class RoslynScriptHost : ScriptHost, IScriptHost, IDisposable
Inheritance
RoslynScriptHost
Implements

Constructors

RoslynScriptHost(IScriptRun)

Initializes a new instance of the CodeDomScriptHost class with specified script runner.

Properties

Compilation

Gets a current project Microsoft.CodeAnalysis.Compilation.

Compiled

Gets boolean value indicating that script has been compiled and ready to be executed.

EntryPoint

Gets an entry point of the successfull compilation.

ScriptAssembly

Returns compiled script assembly.

Workspace

Gets a current project Microsoft.CodeAnalysis.Workspace.

Methods

Compile(bool, bool, bool)

Initializes script engine and compiles the script.

CreateScriptEngine()
Dispose(bool)
GenerateAssemblyInfo()
GenerateAutoCode()
GenerateGlobalCode(IList<IScriptGlobalItem>)
GetErrors(ImmutableArray<Diagnostic>)
InternalRun(object[])
InternalRunAsync(object[], CancellationToken)
IsSubmission()
ReferencesDotNetCoreRuntime(out Version)

Detect a version of the DotNET Core installed on the PC.

Reset()

Removes the script engine from the running state and disconnects automatically bound event handlers.

RunSubmission()