Class AssemblyCompiler
Used for building DLL assemblies in WeaverCore
Namespace: WeaverCore.Editor.Compilation
Assembly: WeaverCore.Editor.dll
Syntax
public class AssemblyCompiler
Constructors
| Edit this page View SourceAssemblyCompiler()
Declaration
public AssemblyCompiler()
Properties
| Edit this page View SourceBuildDirectory
The directory the DLL will be built to
Declaration
public DirectoryInfo BuildDirectory { get; set; }
Property Value
Type | Description |
---|---|
DirectoryInfo |
Building
Is the DLL currently being built?
Declaration
public bool Building { get; }
Property Value
Type | Description |
---|---|
bool |
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> |
ExcludedReferences
A list of excluded assembly reference paths
Declaration
public List<string> ExcludedReferences { get; set; }
Property Value
Type | Description |
---|---|
List<string> |
FileName
The file name of the built DLL
Declaration
public string FileName { get; set; }
Property Value
Type | Description |
---|---|
string |
Flags
Some other compiler build flags
Declaration
public AssemblyBuilderFlags Flags { get; set; }
Property Value
Type | Description |
---|---|
AssemblyBuilderFlags |
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 |
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> |
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> |
Target
The target build platform of the build
Declaration
public BuildTarget Target { get; set; }
Property Value
Type | Description |
---|---|
BuildTarget |
TargetGroup
The target build group of the build
Declaration
public BuildTargetGroup TargetGroup { get; set; }
Property Value
Type | Description |
---|---|
BuildTargetGroup |
Methods
| Edit this page View SourceAddUnityReferences()
Adds in references to Unity assemblies
Declaration
public void AddUnityReferences()
Build(OutputDetails)
Declaration
public IEnumerator Build(AssemblyCompiler.OutputDetails details)
Parameters
Type | Name | Description |
---|---|---|
AssemblyCompiler.OutputDetails | details |
Returns
Type | Description |
---|---|
IEnumerator |
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> |
RemoveEditorReferences()
Removes any references to editor assemblies
Declaration
public void RemoveEditorReferences()