# Assembly

> Constructor.

## Definition

* **Type:** Constructor
* **Namespace:** [UnityEditor.Compilation](/engine/6000.7/script-reference/unityeditor/compilation.md)
* **Assembly:** UnityEditor.CoreModule

## Assembly(string, string, string\[], string\[], Assembly\[], string\[], AssemblyFlags)

Constructor.

```csharp
public Assembly(string name, string outputPath, string[] sourceFiles, string[] defines, Assembly[] assemblyReferences, string[] compiledAssemblyReferences, AssemblyFlags flags)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Assembly name.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Assembly output.**** (\[string\[]]\(https\://learn.microsoft.com/dotnet/api/system.string)): Assembliy source files.**** (\[string\[]]\(https\://learn.microsoft.com/dotnet/api/system.string)): Assembly defines.**** (\[Assembly\[]]\(/engine/6000.7/script-reference/unityeditor/compilation/assembly)): Assembly references.**** (\[string\[]]\(https\://learn.microsoft.com/dotnet/api/system.string)): Compiled assembly references.**** (\[AssemblyFlags]\(/engine/6000.7/script-reference/unityeditor/compilation/assemblyflags)): Assembly flags.

## Assembly(string, string, string\[], string\[], Assembly\[], string\[], AssemblyFlags, ScriptCompilerOptions)

Constructor.

```csharp
public Assembly(string name, string outputPath, string[] sourceFiles, string[] defines, Assembly[] assemblyReferences, string[] compiledAssemblyReferences, AssemblyFlags flags, ScriptCompilerOptions compilerOptions)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Assembly name.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Assembly output.**** (\[string\[]]\(https\://learn.microsoft.com/dotnet/api/system.string)): Assembliy source files.**** (\[string\[]]\(https\://learn.microsoft.com/dotnet/api/system.string)): Assembly defines.**** (\[Assembly\[]]\(/engine/6000.7/script-reference/unityeditor/compilation/assembly)): Assembly references.**** (\[string\[]]\(https\://learn.microsoft.com/dotnet/api/system.string)): Compiled assembly references.**** (\[AssemblyFlags]\(/engine/6000.7/script-reference/unityeditor/compilation/assemblyflags)): Assembly flags.**** (\[ScriptCompilerOptions]\(/engine/6000.7/script-reference/unityeditor/compilation/scriptcompileroptions)):&#x20;

## Assembly(string, string, string\[], string\[], Assembly\[], string\[], AssemblyFlags, ScriptCompilerOptions, string)

Constructor.

```csharp
public Assembly(string name, string outputPath, string[] sourceFiles, string[] defines, Assembly[] assemblyReferences, string[] compiledAssemblyReferences, AssemblyFlags flags, ScriptCompilerOptions compilerOptions, string rootNamespace)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Assembly name.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Assembly output.**** (\[string\[]]\(https\://learn.microsoft.com/dotnet/api/system.string)): Assembliy source files.**** (\[string\[]]\(https\://learn.microsoft.com/dotnet/api/system.string)): Assembly defines.**** (\[Assembly\[]]\(/engine/6000.7/script-reference/unityeditor/compilation/assembly)): Assembly references.**** (\[string\[]]\(https\://learn.microsoft.com/dotnet/api/system.string)): Compiled assembly references.**** (\[AssemblyFlags]\(/engine/6000.7/script-reference/unityeditor/compilation/assemblyflags)): Assembly flags.**** (\[ScriptCompilerOptions]\(/engine/6000.7/script-reference/unityeditor/compilation/scriptcompileroptions)): **** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)):&#x20;
