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

Nuget / RestSharp integration

Discussion in 'Formats & External Tools' started by tbigfish88, Mar 9, 2018.

  1. tbigfish88

    tbigfish88

    Joined:
    Nov 9, 2015
    Posts:
    35
    Hi,

    I'm looking to use RestSharp with my project, which is available through Nuget, however Unity doesn't seem to support this. Anyone managed this so far?

    Cheers

    Nick
     
  2. zyzyx

    zyzyx

    Joined:
    Jul 9, 2012
    Posts:
    226
    You can download the package from nuget.org (manual download). Rename the package from .nupkg to .zip, extract it. There is a lib folder containing the .dlls for .NET 4.5+ and .NET Standard 2.0. Don't forget to set the scripting backend to 4.6 in your player settings.
    I haven't tested RestSharp specifically but other packages work fine.
     
    tbigfish88 likes this.
  3. Thaina

    Thaina

    Joined:
    Jul 13, 2012
    Posts:
    1,049
    I have seen unity has new Package Manager feature. Do we really still need the hack solution like that in 2018?
     
  4. zyzyx

    zyzyx

    Joined:
    Jul 9, 2012
    Posts:
    226
    Afaik, yes.