Search Unity

Runtime References in Package

Discussion in 'Package Manager' started by wilfredo-velazquez, Jan 8, 2019.

  1. wilfredo-velazquez

    wilfredo-velazquez

    Joined:
    Mar 12, 2018
    Posts:
    3
    Hello.

    Does the Package system support anything like `mcs.rsp` for linking with system runtime assemblies, eg `System.Net.Http.dll`?

    I am creating a package with a system dependency, and currently the only solution I've found is to have the user of the package add an rsp with -my- dependencies.

    Thank you!
     
  2. pedro_unity

    pedro_unity

    Unity Technologies

    Joined:
    Jan 16, 2017
    Posts:
    161
    Hello @wilfredo-velazquez,

    That is an excellent question. I don't think we can currently do this from a package. Let me talk to some people internally and see if there is an upcoming solution or a current workaround.

    Cheers,
    Pedro
    Unity STE
     
  3. HaraldNielsen

    HaraldNielsen

    Unity Technologies

    Joined:
    Jun 8, 2016
    Posts:
    37
    Hi @wilfredo-velazquez,
    Since 2018.3 you can add reponse files pr asmdef
    You need csc.rsp for new .NET, and mcs.rsp for old

    Will look into getting this documented nicely.
     
  4. wilfredo-velazquez

    wilfredo-velazquez

    Joined:
    Mar 12, 2018
    Posts:
    3
    Interesting @HaraldNielsen ,
    So if I'm understanding correctly, I would create a `csc.rsp`/`mcs.rsp` file in the same directory as the `asmdef` file?

    Thanks!
     
  5. HaraldNielsen

    HaraldNielsen

    Unity Technologies

    Joined:
    Jun 8, 2016
    Posts:
    37
  6. wilfredo-velazquez

    wilfredo-velazquez

    Joined:
    Mar 12, 2018
    Posts:
    3
    Great, thanks. I had tried that before creating the original post, but since we're on 2018.2 it didn't work.
    We'll upgrade and use that.

    Thanks again
     
    HaraldNielsen likes this.