SocketIOUnity icon indicating copy to clipboard operation
SocketIOUnity copied to clipboard

Fix issue where Newtonsoft conflicts with default packages.

Open Spillmaker opened this issue 3 years ago • 4 comments

Not sure when Unity started doing it, but in my use-case (2D project, Unity 2021.3.4f1 on Mac) there is already a Newtonsoft package included as an dependency for the 2D base package. Making it impossible to use this package since you cant have multiple DLL-files with the same package name.

I removed the DLL-files and included Newtonsoft as a dependency.

Initial testing for my usecases seems to work fine, but since i dont know this codebase i cant be 100% sure that this will work in all scenarios.

Spillmaker avatar Jun 13 '22 20:06 Spillmaker

Maybe i have to put all possible libraries to package.json dependencies property instead, what you provide "nuget.newtonsoft-json" : "3.0.2" is a one

itisnajim avatar Jun 16 '22 13:06 itisnajim

Think that would be beneficial yea, but some libraries may not be available, so you would have to check that first.

This is a good start on that progress tho.

Spillmaker avatar Jun 16 '22 17:06 Spillmaker

Any news about merging PR? Thanks

didix16 avatar Sep 09 '22 12:09 didix16

Would be great to see this get merged, worked perfectly for me 👍

OlliePugh avatar Oct 01 '22 23:10 OlliePugh

i have multiple assemblies problem with json.net how can i fix this please help?

sumitprof2017 avatar Jan 23 '23 01:01 sumitprof2017