Search Unity

Shared Dynamic Linked Libraries

Discussion in 'Package Manager' started by ThisIsAUser, Aug 10, 2019.

  1. ThisIsAUser

    ThisIsAUser

    Joined:
    Oct 12, 2018
    Posts:
    14
    Hi all,

    i have a simple problem / feature request.
    My current package depends on the YamlDotNet library and because I'm using the new package system I integrated the DLL directly. Everything works fine but now I have the bad situation that I have a second package written by my colleague that ofc also uses YamlDotNet.
    Is there a way to share the DLL between both packages so that they dont collide with each other and that you dont need to ship them twice?
     
  2. Favo-Yang

    Favo-Yang

    Joined:
    Apr 4, 2011
    Posts:
    156
    YamlDotNet should be a package dependency then.
     
  3. ThisIsAUser

    ThisIsAUser

    Joined:
    Oct 12, 2018
    Posts:
    14
    Yes but it then you need to import it every time from scratch. That is the thing that i want to avoid.
     
  4. Favo-Yang

    Favo-Yang

    Joined:
    Apr 4, 2011
    Posts:
    156
    The dependency should be resolved (imported) automatically right? What's the behaviour you expect?