My Project
Loading...
Searching...
No Matches
Public Types | Static Public Member Functions | Static Public Attributes | Properties | List of all members
RoslynCSharp.RoslynCSharp Class Reference

The main settings for Roslyn C#. More...

Inheritance diagram for RoslynCSharp.RoslynCSharp:

Public Types

enum  LogDetail { None , Errors , Warnings , Info }
 The amount of detail that should be logged to the uNity console. More...
 

Static Public Member Functions

static void LoadResources ()
 Load the settings from the resources folder.
 
static void Log (string format, params object[] args)
 Log a message to the Unity console if the LogLevel allows info messages.
 
static void LogWarning (string format, params object[] args)
 Log a warning to the Unity console if the LogLevel allows warning messages.
 
static void LogError (string format, params object[] args)
 Log an error to the Unity console if the LogLevel allows error messages.
 

Static Public Attributes

const string settingsName = "RoslynCSharpSettings"
 The default name of the settings asset.
 

Properties

static RoslynCSharp Settings [get]
 Get the active settings. This will cause the settings to be loaded from resources if they are not already loaded.
 
bool SecurityCheckCode [get, set]
 Should loaded or compiled code be security checked.
 
bool AllowPInvoke [get, set]
 Should external pinvoke calls be allowed. It is highly recommended that this options remains disabled to prevent external unverified code from running.
 
CodeSecurityRestrictions SecurityRestrictions [get]
 The restrictions that are used to security check code.
 
LogDetail LogLevel [get, set]
 The log level used to determine which types of messages get logged to the console.
 
bool AllowUnsafeCode [get, set]
 Should the compiler allow unsafe code to be compiled.
 
bool AllowOptimizeCode [get, set]
 Should the compiler optimize the output.
 
bool AllowConcurrentCompile [get, set]
 Should the compiler use multiple threads to compile the code.
 
bool Deterministic [get, set]
 
bool GenerateInMemory [get, set]
 Should the compiler generate the output in memory or write it to the file system.
 
bool GenerateSymbols [get, set]
 Should the debug symbols pdb file be generated. When enabled, a pdb file or memory image will be generated depending upon the value of GenerateInMemory.
 
int WarningLevel [get, set]
 The current compiler warning level.
 
LanguageVersion LanguageVersion [get, set]
 The target C# language version that should be supported.
 
Platform TargetPlatform [get, set]
 The target platform architecture.
 
IList< string > References [get]
 A list of assembly references used by the compiler.
 
IList< AssemblyReferenceAssetReferenceAssets [get]
 A list of assembly reference assets used by the compiler.
 
IList< string > DefineSymbols [get]
 A list of define symbols used by the compiler.
 
bool AllowHotReloading [get, set]
 Should hot reloading be enabled while in play mode.
 
bool HotReloadCopySerializedFields [get, set]
 Should serialized fields be copied when a script is hot reloaded.
 
bool HotReloadCopyNonSerializedFields [get, set]
 Should non serialized fields be copied when a script is hot reloaded.
 
bool HotReloadDestroyOriginalScript [get, set]
 Should the original script be destroyed when a script is hot reloaded.
 
bool HotReloadDisableOriginalScript [get, set]
 Should the original script be disabled when a script is hot reloaded.
 
bool HotReloadSecurityCheckCode [get, set]
 Should code security verification checks run on reloaded code. It is recommended that you disable this option for quicker reload times.
 
bool HotReloadUseCSharpProjectReferences [get, set]
 Should reference assemblies by automatically detected by parsing the .csproj file generated by Unity. It is recommended that you enable this option to avoid missing reference errors when attempting to hot reload code at runtime.
 

Detailed Description

The main settings for Roslyn C#.

Member Enumeration Documentation

◆ LogDetail

The amount of detail that should be logged to the uNity console.

Enumerator
None 

Dont log any messages.

Errors 

Only log errors.

Warnings 

Only log warnings and errors.

Info 

Log all types of messages.

Member Function Documentation

◆ Log()

static void RoslynCSharp.RoslynCSharp.Log ( string  format,
params object[]  args 
)
inlinestatic

Log a message to the Unity console if the LogLevel allows info messages.

Parameters
formatThe format string
argsThe string format arguments

◆ LogError()

static void RoslynCSharp.RoslynCSharp.LogError ( string  format,
params object[]  args 
)
inlinestatic

Log an error to the Unity console if the LogLevel allows error messages.

Parameters
formatThe format string
argsThe string format arguments

◆ LogWarning()

static void RoslynCSharp.RoslynCSharp.LogWarning ( string  format,
params object[]  args 
)
inlinestatic

Log a warning to the Unity console if the LogLevel allows warning messages.

Parameters
formatThe format string
argsThe string format arguments

The documentation for this class was generated from the following file: