using Microsoft.CodeAnalysis; namespace Sandbox; public class CompilerOutput { public CompilerOutput( Compiler compiler ) { Compiler = compiler; } /// /// True if the build succeeded /// public bool Successful { get; internal set; } /// /// The compiler that has produced this build /// public Compiler Compiler { get; } /// /// The version of the assembly /// public Version Version { get; set; } /// /// The [assembly].dll contents for this build /// public byte[] AssemblyData { get; internal set; } /// /// A code archive created during the compile /// public CodeArchive Archive { get; internal set; } /// /// The [assembly].xml contents for this build /// public string XmlDocumentation { get; internal set; } /// /// A list of diagnostics caused by the previous build /// public List Diagnostics { get; } = new(); /// /// If an exception happened during the build, it'll be available here /// public Exception Exception { get; internal set; } /// /// For referencing this assembly from another compiler. /// internal PortableExecutableReference MetadataReference { get; set; } }