Api Configuration
struct

Configuration

public sealed struct Configuration

Constructors

Configuration()

Properties

Name Type Description
RootNamespace String
DefineConstants String
NoWarn String
WarningsAsErrors String
TreatWarningsAsErrors Boolean
Nullables Boolean
Whitelist Boolean 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.
Unsafe Boolean If true, we'll compile with /unsafe. This means that the package won't be able to be published on the platform.
ReleaseMode ReleaseMode 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).
AssemblyReferences List<String> References to non-package assemblies, by assembly name.
ReplacementDirectives Dictionary<String, String> Maps file patterns to preprocessor directives they should be wrapped in
IgnoreFolders HashSet<String> Folders to ignore when walking the tree
DistinctAssemblyReferences IReadOnlySet<String> Each unique element of AssemblyReferences

Methods

Void Clean()
HashSet<String> GetPreprocessorSymbols()

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

CSharpParseOptions GetParseOptions()

Returns the CSharpParseOptions for this configuration, which includes the preprocessor symbols defined in DefineConstants.

Assembly: Sandbox.Compiling Declaring Type: Compiler Full Name: Sandbox.Compiler.Configuration