Search Unity

  1. Unity 2020.1 has been released.
    Dismiss Notice
  2. We are looking for feedback on the experimental Unity Safe Mode which is aiming to help you resolve compilation errors faster during project startup.
    Dismiss Notice
  3. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Help Wanted Can't build DLL without referencing Unity.CoreModule directly

Discussion in 'Scripting' started by HugoZink, Jul 2, 2020.

  1. HugoZink

    HugoZink

    Joined:
    Mar 4, 2018
    Posts:
    11
    I'm building a collection of editor scripts for Unity on Unity 2018.4.20f1. I made a separate assembly definition file for these editor scripts, and I'm using Visual Studio 2019 to compile them into DLL's.

    When loading the built DLL in another project, I get this warning:
    However, this appears to not be true. When I remove this reference from my C# project, I get build errors about UnityEngine.CoreModule missing:
    So Unity wants me to remove these references, but if I remove them, the project no longer builds. Is this a bug? I already have a reference to UnityEngine in the build.

    Any ideas?
     
unityunity