Build fail: Compilation failure on Assembly-CSharp-Editor.dll

I can’t figure out why I’m getting build errors on my game. The error message I get is

6477: [Unity] -----CompilerOutput:-stdout–exitcode: 1–compilationhadfailure: True–outfile: Temp/Assembly-CSharp-Editor.dll
6478: [Unity] The class Mono.Cecil.Cil.ISymbolReaderProvider could not be loaded, used in Mono.Cecil, Version=0.9.6.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756
6479: [Unity] The class Mono.Cecil.Cil.ISymbolWriterProvider could not be loaded, used in Mono.Cecil, Version=0.9.6.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756
6480: [Unity] Unhandled Exception: System.Reflection.ReflectionTypeLoadException: The classes in the module cannot be loaded.
6481: [Unity] at (wrapper managed-to-native) System.Reflection.Assembly:GetTypes (bool)
6482: [Unity] at System.Reflection.Assembly.GetTypes () [0x00000] in :0
6483: [Unity] at Mono.CSharp.RootNamespace.ComputeNamespaces (System.Reflection.Assembly assembly, System.Type extensionType) [0x00000] in :0
6484: [Unity] at Mono.CSharp.RootNamespace.ComputeNamespace (Mono.CSharp.CompilerContext ctx, System.Type extensionType) [0x00000] in :0
6485: [Unity] at Mono.CSharp.GlobalRootNamespace.ComputeNamespaces (Mono.CSharp.CompilerContext ctx) [0x00000] in :0
6486: [Unity] at Mono.CSharp.Driver.LoadReferences () [0x00000] in :0
6487: [Unity] at Mono.CSharp.Driver.Compile () [0x00000] in :0
6488: [Unity] at Mono.CSharp.Driver.Main (System.String[ ] args) [0x00000] in :0
6489: [Unity] - Finished compile Library/ScriptAssemblies/Assembly-CSharp-Editor.dll

I can build and run the executable fine on my local machine, but UCB doesn’t work on our game. The game is called Space-Colony

Same problem here.
Also, many other errors, while on my local machine I can build the project without problems.

I had a similar problem regarding the namespaces and failure on the .dll.

My solution was setting the git to ignore my /Library folder and all its contents.

  • Woaka

Actually I already set git to ignore the Library folder: it is not present on the repository at all.

Same here my Library folder is not present in the repository

Hey ashenvale & K1kk0z90_Unity
Can you direct message me a link to your project to see if I can’t figure out what might be causing this issue?

Thanks,
Ryan

1 Like

The problem was fixed when updating to latest Unity Test Tools