Search Unity

The problem about the AssemblyBuilder.defaultReferences

Discussion in 'Package Manager' started by watsonsong, May 23, 2019.

  1. watsonsong

    watsonsong

    Joined:
    May 13, 2015
    Posts:
    555
    I find the AssemblyBuilder.defaultReferences always include every assembly inside current project. Which make the generated dll has useless reference.
    Is there anyway to get away the defaultReferences?
    Rightnow I am try to specify the excludeReferences to avoid the error defaultReferences, but it seem friable for the code.
     
  2. jasons_unity

    jasons_unity

    Unity Technologies

    Joined:
    Dec 10, 2018
    Posts:
    17
    I believe the only way is with excludeReferences.