Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Failed to Copy Assembly-CSharp.dll on Script-Compilation

Discussion in 'Editor & General Support' started by NiclzzK, Sep 17, 2018.

  1. NiclzzK

    NiclzzK

    Joined:
    Apr 20, 2016
    Posts:
    1
    Since using Unity 2018.2 and later versions with my project i often get the error:
    "Copying assembly from 'Temp/Assembly-CSharp.dll' to 'Library/ScriptAssemblies/Assembly-CSharp.dll' failed".

    I only get this error after changing something in a Script and switching back to Unity.
    I can fix this only by restarting Unity or by going back and change the script so it's missing a ";" at the and of a line, then switch to unity so an script error shows, and then putting the ";" back, because then everything works fine.

    Is there a way to resolve the problem?
    Struggling with always needing to quick fix it, instead of overall fixing it is not so nice.
     
  2. wagenheimer

    wagenheimer

    Joined:
    Jun 1, 2018
    Posts:
    322
    I also have the same problem here! I must restart unity several times a day because of this.
     
  3. toddhdavis

    toddhdavis

    Joined:
    Oct 18, 2018
    Posts:
    7
    RIght-click on your Scripts folder. Choose "ReImport". Celebrate.
     
  4. Osdon

    Osdon

    Joined:
    Nov 26, 2016
    Posts:
    2
    It does not work for me :/