Table of Contents

Method CompileAsync

Namespace
GrindFest
Assembly
GrindFest.dll

CompileAsync(string, string, string, bool, bool)

The asynchronous door to the same compilation: the isolated security analysis is awaited instead of blocked on, and the player's isolated-API setting is honoured. This is the path the game itself uses.

public Task<(Assembly Assembly, ImmutableArray<Diagnostic> Diagnostics, byte[] AssemblyBytes)> CompileAsync(string assemblyName, string sourceDirectory, string outputPath = null, bool isolated = false, bool localHero = true)

Parameters

assemblyName string
sourceDirectory string
outputPath string
isolated bool
localHero bool

Returns

Task<(Assembly Assembly, ImmutableArray<Diagnostic> Diagnostics, byte[] AssemblyBytes)>