RestSharp.Unity icon indicating copy to clipboard operation
RestSharp.Unity copied to clipboard

How to install via Package Manager?

Open JordanEllapin opened this issue 4 years ago • 2 comments

I can't add this repository as a package via the package manager. I had this error in the console :

[Package Manager Window] Cannot perform upm operation: Unable to add package [https://github.com/adrenak/RestSharp.Unity.git]: [https://github.com/adrenak/RestSharp.Unity.git] does not point to a valid package. No package manifest was found. [NotFound].

It would be great to add it like a package. It is much easier to manager packages in this way in Unity. Thanks!

JordanEllapin avatar Oct 25 '21 11:10 JordanEllapin

Hey, sorry for the late reply. If you want to add using package manager there are two ways:

  • Add via git URL: https://github.com/adrenak/RestSharp.Unity.git#upm as the UPM branch is separate

  • Second, add using the npmjs registry. Make sure your projects packages manifest has this scope: { "name": "registry.npmjs.org", "url": "https://registry.npmjs.org", "scopes": [ "com.adrenak.restsharp.unity" "org.npmjs" ] }

    And the following as a dependency in the same file: "com.adrenak.restsharp.unity": "1.1.0"

Lemme know if this helps. UPM installation can get tricky 😅

adrenak avatar Nov 02 '21 08:11 adrenak

Thanks for the great work - probably worth taking note of the extra branch in the original README. I passed in https://github.com/adrenak/RestSharp.Unity.git?path=/Assets/Adrenak.RestSharp.Unity which did work but figured there had to be a simpler way :P

BennetVellaExient avatar Aug 13 '24 10:08 BennetVellaExient