Search Unity

(Case 1180932) [Unity 2019.2.3f1] Custom Assembly called "Application" causes nameclash

Discussion in 'Editor & General Support' started by MNNoxMortem, Sep 1, 2019.

  1. MNNoxMortem

    MNNoxMortem

    Joined:
    Sep 11, 2016
    Posts:
    723
    Since upgrading to Unity 2019.2.3f1 and moving some code using UnityEngine.Application out of an assembly defined by Application.asmdef I got annoyed by unity causing compiler errors, altough the references are set correctly Custom Assembly called "Application" causes nameclash. Specifying to use "UnityEngine.Application" altough it should not be required, as "Application.asmdef" is not referenced solved the problem.

    However, this is pretty annoying and a compilation breaking bug.

    nameclashBug1.PNG nameclashBug2.PNG nameclashBug3.PNG
     
  2. MNNoxMortem

    MNNoxMortem

    Joined:
    Sep 11, 2016
    Posts:
    723
    After compiling successful, removing the unecessary qualifier, compiling again, it worked out. However, this is just one of those pain points with Unity I am really not keen of. I do not want to deal with bugs like this one.