Click or drag to resize

CompileInfo Properties

The CompileInfo type exposes the following members.

Properties
  NameDescription
Public propertyAssemblyFile
The assembly file path. If not specified it will be composed as "<RootClass>.dll".
Public propertyPdbFile
The PDB file path.

Even if the this value is specified the file will not be generated unless EvaluatorConfig.DebugBuild is set to true.

Public propertyPreferLoadingFromFile
Gets or sets a value indicating whether to prefer loading compiled script from the assembly file when it is available.
Public propertyRootClass
Gets or sets the root class name.

This setting is required as Roslyn cannot produce compiled scripts with the user script class defined as a top level class. Thus all user defined classes are in fact nested classes with the root class named by Roslyn as "Submission#0". This leads to the complications when user wants to reference script class in another script. Specifically because C# treats "Submission#0" as an illegal class name.

C# helps the situation by allowing user specified root name RootClass, which is by default is "css_root".

Top
See Also