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

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:
    319
    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 :/