Configurationclass

objectConfiguration
Namespace
global
Assembly
Sandbox.Compiling
Declaration
public sealed struct Sandbox.Compiler.Configuration

Constructors1

Showing 1 constructors

Methods3

Showing 3 methods

public void Clean()PUBLIC

Returns:void

public Microsoft.CodeAnalysis.CSharp.CSharpParseOptions GetParseOptions()PUBLIC

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

Returns:CSharpParseOptions

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

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

Returns:HashSet<string>

Properties13

Showing 13 properties

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

References to non-package assemblies, by assembly name.

Returns:List<string>

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

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

Returns:IReadOnlySet<string>

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

Folders to ignore when walking the tree

Returns:HashSet<string>

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

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).

Returns:ReleaseMode

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

Maps file patterns to preprocessor directives they should be wrapped in

Returns:Dictionary<string,string>

public bool Sandbox.Compiler.Configuration.TreatWarningsAsErrors { get; set; }PUBLICGETSET

Returns:bool

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

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

Returns:bool

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

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.

Returns:bool

On this page