CodeArchiveclass

objectCodeArchive
Namespace
Sandbox
Assembly
Sandbox.Compiling
Declaration
public class Sandbox.CodeArchive

Constructors2

Showing 2 constructors

Methods1

Showing 1 methods

public byte[] Serialize()PUBLIC

Serialize to a byte array

Returns:byte[]

Properties8

Showing 8 properties

public System.Collections.Generic.List`1<Sandbox.CodeArchive.AdditionalFile> Sandbox.CodeArchive.AdditionalFiles { get; set; }PUBLICGETSET

Additional files that the compiler/generator needs. This is going to be .razor files.

Returns:List<AdditionalFile>

public string Sandbox.CodeArchive.CompilerName { get; set; }PUBLICGETSET

The name of the compiler

Returns:string

public System.Collections.Concurrent.ConcurrentDictionary`2<string,ulong> Sandbox.CodeArchive.FileHashMap { get; set; }PUBLICGETSET

Hashes of source files, used for incremental compiles. Not serialized right now.

Returns:ConcurrentDictionary<string,ulong>

public System.Collections.Generic.Dictionary`2<string,string> Sandbox.CodeArchive.FileMap { get; set; }PUBLICGETSET

Converts the syntax tree paths from physical paths to project local paths

Returns:Dictionary<string,string>

public System.Collections.Generic.HashSet`1<string> Sandbox.CodeArchive.References { get; set; }PUBLICGETSET

References that this compiler/generator needs to compile the code

Returns:HashSet<string>

public System.Collections.Generic.List`1<Microsoft.CodeAnalysis.SyntaxTree> Sandbox.CodeArchive.SyntaxTrees { get; set; }PUBLICGETSET

The syntax trees that should be compiled

Returns:List<SyntaxTree>

public long Sandbox.CodeArchive.Version { get; set; }PUBLICGETSET

The version of the code archive 1005 - Inital version 1006 - Razor updates. Add razor namespaces on older versions. 1007 - Razor changed to our own Microsoft.AspNetCore.Components assembly

Returns:long

On this page