Search Unity

  1. Unity 2019.1 beta is now available.
    Dismiss Notice
  2. We're excited to be bringing you the newest Unity features, news, demos, and we've even got some special guests from some of the industry’s most storied franchises. Set a reminder to tune in on YouTube here
    Dismiss Notice
  3. Unity 2018.3 is now released.
    Dismiss Notice

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:
    156
    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:
    30
    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:
    30
  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.