Replies: 1 comment
-
Hello @mkamalza! As the Newtonsoft.Json scene looks like it does in the Unity community right now, with so many scattered versions, I would strongly advise against locking down to 1 specific version. For reference, I have identified these 5 different sources so far: (there are probably more)
The best recommendation I have is to add an installation guide to your package that says something like:
It's not a pretty solution, but as there is no de-facto package out there, and the fact that Unity does not want to embrace for example this repo but instead try to introduce their own package in the already extensive list of Json.NET alternatives, then this issue remains. Doing a search on GitHub after this package, it's clear that a lot of users don't even use UPM but instead embed the binaries directly into their repo. To answer your question directly though, no I've actually never tried to have any dependencies in a package on other packages from other scoped registries. Reading the docs (https://docs.unity3d.com/Manual/upm-manifestPkg.html) I interpret it such that if you add a dependency on my package |
Beta Was this translation helpful? Give feedback.
-
Hi,
Is it possible to add this package as a dependency for another package through adding it to the latter's package.json file? I have tried a few ways, including the scoped registry method but it does not work.
Beta Was this translation helpful? Give feedback.
All reactions