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. Dismiss Notice

Copying assembly from 'Temp' to 'Library' failed

Discussion in 'Editor & General Support' started by pcdubas, May 17, 2019.

  1. pcdubas

    pcdubas

    Joined:
    Oct 13, 2015
    Posts:
    1
    Hi, nine of ten recompilations drive me to this Error:

    "Copying assembly from 'Temp/Unity.ugui.dll' to 'Library/ScriptAssemblies/Unity.ugui.dll' failed"

    Where you can see "Unity.ugui.dll" is just the last one, there a many of them. Unity.PostProcessing, Unity.RunTime, Unity.TextMeshPro... custom and much more others.

    I change the folder Security, add an exclusion on Antivírus, remove a lot of packages from Package Manager.

    This erros apears in all my projects. Tested in all 2019 Editor's version.

    Please Help Me;
     
    briank likes this.
  2. briank

    briank

    Joined:
    Mar 25, 2017
    Posts:
    74
    +1, this is so annoying and appears to be entirely random. The copy can fail for any assembly definition in my project (it seems like the more assembly defs, the more likely you are to encounter this.)

    It would be one thing if this error was just ignorable, but it prevents you from entering play-mode or building.

    Edit: 2018.4.0f1
     
  3. bmarinariSparky

    bmarinariSparky

    Joined:
    Jan 5, 2018
    Posts:
    10
    We had this issue when building Standalone. I found that in our case this was caused by recompilation of scripts happening when we attempted to make a Standalone Build. This happens when you have "Auto Refresh" disabled. Re-enabling fixed this for us.

    If you are getting this for regular editor-only script builds, I don't have any advice. :(
     
  4. unity_LzBuY34i8W2htg

    unity_LzBuY34i8W2htg

    Joined:
    Dec 27, 2017
    Posts:
    9
  5. dienat

    dienat

    Joined:
    May 27, 2016
    Posts:
    417
    You mean auto refresh in Preferences - General? I have that option activated and didnt solve the problem
     
  6. wolfy2

    wolfy2

    Joined:
    Nov 2, 2015
    Posts:
    13
    Found a solution somewhere that said i have a bitcoin miner and that's screwing things up. Wierdly enough that turned out to be true. Malewarebytes found the miner and problem was resoleved after the quarantine.
     
  7. alstovbur

    alstovbur

    Joined:
    Apr 16, 2020
    Posts:
    2
    Checking by Malewarebytes fixed the problem. Solution confirmed.