This version of Unity is unsupported.
Method group is Obsolete

AssemblyBuilder.excludeReferences

Obsolete This feature is being deprecated and will be removed in the future. Similar functionality can be achieved using the Roslyn compiler. public string[] excludeReferences;

Description

References to exclude when compiling the assembly.

References paths are relative to project root and must include full filename with .dll extension.

See Also: AssemblyBuilder.Build.