# flags

> Flags to control the assembly build.

## Definition

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

> **Warning:**
>
> **Deprecated.** This feature is being deprecated and will be removed in the future. Similar functionality can be achieved using the Roslyn compiler

```csharp
public AssemblyBuilderFlags flags { get; set; }
```

### Remarks

Set this property to [AssemblyBuilderFlags.EditorAssembly](/engine/6000.5/script-reference/unityeditor/compilation/assemblybuilderflags/editorassembly.md) to build an assembly with editor assembly references and #define directives.

Set this property to [AssemblyBuilderFlags.DevelopmentBuild](/engine/6000.5/script-reference/unityeditor/compilation/assemblybuilderflags/developmentbuild.md) to build an assembly with development assembly #define directives.

Additional Resources: [AssemblyBuilderFlags](/engine/6000.5/script-reference/unityeditor/compilation/assemblybuilderflags.md).
