Show / Hide Table of Contents

Class AssemblyCompiler

Used for building DLL assemblies in WeaverCore

Inheritance
object
AssemblyCompiler
Namespace: WeaverCore.Editor.Compilation
Assembly: WeaverCore.Editor.dll
Syntax
public class AssemblyCompiler

Constructors

| Edit this page View Source

AssemblyCompiler()

Declaration
public AssemblyCompiler()

Properties

| Edit this page View Source

BuildDirectory

The directory the DLL will be built to

Declaration
public DirectoryInfo BuildDirectory { get; set; }
Property Value
Type Description
DirectoryInfo
| Edit this page View Source

Building

Is the DLL currently being built?

Declaration
public bool Building { get; }
Property Value
Type Description
bool
| Edit this page View Source

Defines

A list of #define's to be included in the DLL build

Declaration
public List<string> Defines { get; set; }
Property Value
Type Description
List<string>
| Edit this page View Source

ExcludedReferences

A list of excluded assembly reference paths

Declaration
public List<string> ExcludedReferences { get; set; }
Property Value
Type Description
List<string>
| Edit this page View Source

FileName

The file name of the built DLL

Declaration
public string FileName { get; set; }
Property Value
Type Description
string
| Edit this page View Source

Flags

Some other compiler build flags

Declaration
public AssemblyBuilderFlags Flags { get; set; }
Property Value
Type Description
AssemblyBuilderFlags
| Edit this page View Source

Output

Contains the output information of the compilation. This is null when the Build(OutputDetails) function has not been called yet

Declaration
public AssemblyCompiler.OutputDetails Output { get; }
Property Value
Type Description
AssemblyCompiler.OutputDetails
| Edit this page View Source

References

A list of assembly reference paths to include in the build process

Declaration
public List<string> References { get; set; }
Property Value
Type Description
List<string>
| Edit this page View Source

Scripts

A list of script paths to include in the DLL build

Declaration
public List<string> Scripts { get; set; }
Property Value
Type Description
List<string>
| Edit this page View Source

Target

The target build platform of the build

Declaration
public BuildTarget Target { get; set; }
Property Value
Type Description
BuildTarget
| Edit this page View Source

TargetGroup

The target build group of the build

Declaration
public BuildTargetGroup TargetGroup { get; set; }
Property Value
Type Description
BuildTargetGroup

Methods

| Edit this page View Source

AddUnityReferences()

Adds in references to Unity assemblies

Declaration
public void AddUnityReferences()
| Edit this page View Source

Build(OutputDetails)

Declaration
public IEnumerator Build(AssemblyCompiler.OutputDetails details)
Parameters
Type Name Description
AssemblyCompiler.OutputDetails details
Returns
Type Description
IEnumerator
| Edit this page View Source

GetDefaultReferences()

Gets a list of references that unity includes by default when building an assembly

Declaration
public IEnumerable<string> GetDefaultReferences()
Returns
Type Description
IEnumerable<string>
| Edit this page View Source

RemoveEditorReferences()

Removes any references to editor assemblies

Declaration
public void RemoveEditorReferences()

Extension Methods

ReflectionUtilities.ReflectCallMethod(object, string, object[], BindingFlags)
ReflectionUtilities.ReflectGetField(object, string, BindingFlags)
ReflectionUtilities.ReflectGetMethod(object, string, BindingFlags)
ReflectionUtilities.ReflectGetProperty(object, string, BindingFlags)
ReflectionUtilities.ReflectSetField(object, string, object, BindingFlags)
ReflectionUtilities.ReflectSetProperty(object, string, object, BindingFlags)
  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Generated by DocFX
☀
☾