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’re making changes to the Unity Runtime Fee pricing policy that we announced on September 12th. Access our latest thread for more information!
    Dismiss Notice
  3. Dismiss Notice

[Question] Unity unload dll file.

Discussion in 'General Discussion' started by hillxu008, Feb 27, 2019.

  1. hillxu008

    hillxu008

    Joined:
    Feb 27, 2019
    Posts:
    3
    Hi ,

    I creating a project using Unity and mongodb as database. when copying the dll files to the asset directory, I get the following error:

    Unloading broken assembly Assets/Plugins/MongoDB.Driver.Core.dll, this assembly can cause crashes in the runtime

    I changed "Scripting Runtime Version" to : ".NET 4.X Equivalent"

    Unity version : 2018.2.13.f1

    Mongodb C# driver version: 2.73.

    Anyone can help on this? thanks!
     
  2. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,423
    This error message was improved in newer versions (I think 2019.1, but I'm not sure). This usually means that your DLL depends on another DLL, and Unity can't find that other DLL.
     
  3. hillxu008

    hillxu008

    Joined:
    Feb 27, 2019
    Posts:
    3
    Thank you very much!
    Is there any way we can find out which DLL is required?
     
  4. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,423
    You can try using IL2CPP to check which DLLs it references.