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

Can't add references to Assembly Definition Files

Discussion in 'Editor & General Support' started by TFgamesOG, Aug 7, 2018.

  1. TFgamesOG

    TFgamesOG

    Joined:
    Jun 2, 2017
    Posts:
    16
    Hi guys!

    I'm using Unity 2018.2.0f2

    I wanted to structure my project a little bit and came across Assembly Definition Files. The problem is, that I can't add references. The selection-list only shows my own Assembly:



    Any ideas? Thank you very much!
     
  2. Baste

    Baste

    Joined:
    Jan 24, 2013
    Posts:
    6,195
    Is your code compiling? Is there any code under the other assembly definition?
     
  3. TFgamesOG

    TFgamesOG

    Joined:
    Jun 2, 2017
    Posts:
    16
    Yes, my code compiles (without the use of the Assembly Definition).
    What exactly do mean with "Is there any code under the other assembly definition"?

    Here's the rough structure of my project:
    • [Other Assets]
    • [Game Scripts]
    • [Editor (Scripts)]
    • [Testing]
      • [Editor (Scripts)]
        • Assembly Definition
    There are no other Assembly Definitions than the one in Testing/Editor.
     
  4. Baste

    Baste

    Joined:
    Jan 24, 2013
    Posts:
    6,195
    You can only add references to other assembly definition files through the menu. You can add references to official packages imported through the package manager, but that has to be done manually (for now).

    What are you trying to add references to?
     
    karl_jones likes this.
  5. TFgamesOG

    TFgamesOG

    Joined:
    Jun 2, 2017
    Posts:
    16
    I see - this was a misunderstanding. I saw a video where the instructor added package manager references somehow.
    When will that be possible?