Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

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

Discussion in 'Unity Build Automation' started by ashenvale, Sep 25, 2015.

  1. ashenvale

    ashenvale

    Joined:
    Aug 28, 2012
    Posts:
    7
    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 <filename unknown>:0
    6483: [Unity] at Mono.CSharp.RootNamespace.ComputeNamespaces (System.Reflection.Assembly assembly, System.Type extensionType) [0x00000] in <filename unknown>:0
    6484: [Unity] at Mono.CSharp.RootNamespace.ComputeNamespace (Mono.CSharp.CompilerContext ctx, System.Type extensionType) [0x00000] in <filename unknown>:0
    6485: [Unity] at Mono.CSharp.GlobalRootNamespace.ComputeNamespaces (Mono.CSharp.CompilerContext ctx) [0x00000] in <filename unknown>:0
    6486: [Unity] at Mono.CSharp.Driver.LoadReferences () [0x00000] in <filename unknown>:0
    6487: [Unity] at Mono.CSharp.Driver.Compile () [0x00000] in <filename unknown>:0
    6488: [Unity] at Mono.CSharp.Driver.Main (System.String[] args) [0x00000] in <filename unknown>: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
     
  2. K1kk0z90_Unity

    K1kk0z90_Unity

    Joined:
    Jun 2, 2013
    Posts:
    90
    Same problem here.
    Also, many other errors, while on my local machine I can build the project without problems.
     
  3. Woaka

    Woaka

    Joined:
    Sep 28, 2015
    Posts:
    2
    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
     
  4. K1kk0z90_Unity

    K1kk0z90_Unity

    Joined:
    Jun 2, 2013
    Posts:
    90
    Actually I already set git to ignore the Library folder: it is not present on the repository at all.
     
  5. ashenvale

    ashenvale

    Joined:
    Aug 28, 2012
    Posts:
    7
    Same here my Library folder is not present in the repository
     
  6. Ryanc_unity

    Ryanc_unity

    Unity Technologies

    Joined:
    Jul 22, 2015
    Posts:
    332
    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
     
    ashenvale likes this.
  7. ashenvale

    ashenvale

    Joined:
    Aug 28, 2012
    Posts:
    7
    The problem was fixed when updating to latest Unity Test Tools