s&box docs

public sealed struct Sandbox.Compiler.Configuration

Broader workflow and conceptual references connected to this API.

Constructors

Showing 1 constructors

Methods

Showing 3 methods

public void Clean()

public Microsoft.CodeAnalysis.CSharp.CSharpParseOptions GetParseOptions()

Returns the CSharpParseOptions for this configuration, which includes the preprocessor symbols defined in `Sandbox.Compiler.Configuration.DefineConstants`.

public System.Collections.Generic.HashSet`1<string> GetPreprocessorSymbols()

Fetches the preprocessor symbols, which might've changed based on criteria

Properties

Showing 13 properties

public System.Collections.Generic.List`1<string> Sandbox.Compiler.Configuration.AssemblyReferences { get; set; }

References to non-package assemblies, by assembly name.

public System.Collections.Generic.IReadOnlySet`1<string> Sandbox.Compiler.Configuration.DistinctAssemblyReferences { get; set; }

Each unique element of `Sandbox.Compiler.Configuration.AssemblyReferences`

public System.Collections.Generic.HashSet`1<string> Sandbox.Compiler.Configuration.IgnoreFolders { get; set; }

Folders to ignore when walking the tree

public Sandbox.Compiler.ReleaseMode Sandbox.Compiler.Configuration.ReleaseMode { get; set; }

The current release mode. This only matters during local development. Published games are always built in release mode, where optimizations are enabled and debugging is limited (breakpoints, sequence points, and locals may be unavailable).

public System.Collections.Generic.Dictionary`2<string,string> Sandbox.Compiler.Configuration.ReplacementDirectives { get; set; }

Maps file patterns to preprocessor directives they should be wrapped in

public bool Sandbox.Compiler.Configuration.Unsafe { get; set; }

If true, we'll compile with /unsafe. This means that the package won't be able to be published on the platform.

public bool Sandbox.Compiler.Configuration.Whitelist { get; set; }

If true, we will be using the whitelist system. If false then this package won't be "sandboxed", so won't be able to be published on the platform.

Metadata

FieldValue
Namespaceglobal
Typeclass
AssemblySandbox.Compiling
Doc IDT:Sandbox.Compiler.Configuration

On this page