Unity3dSampleTemplate icon indicating copy to clipboard operation
Unity3dSampleTemplate copied to clipboard

error CS0012: The type 'JsonSerializerSettings' is defined in an assembly that is not referenced. You must add a reference to assembly 'Newtonsoft.Json'

Open abuffie opened this issue 2 years ago • 1 comments

I tried to just use the .dll's in a example project and I get this error when trying to do a simple test retrieving the last block with new EthBlockNumberUnityRequest. error CS0012: The type 'JsonSerializerSettings' is defined in an assembly that is not referenced. You must add a reference to assembly 'Newtonsoft.Json

In the sample project I see you have the package "Newtonsoft Json" but this is not a standard package and it does not show in the manifest so I was not sure how it was imported or from where, also the version included is nuget.newtonsoft-json 2.0.0 which the unity docs state "This is a package intended for internal Unity Development Projects and as such this package is not supported. Use at your own risk." as found here [email protected]

"com.unity.nuget.newtonsoft-json": "3.0.1" looks to be the suggested version but does not seem compatible . After adding v3 directly to the manifest, the library showed up in the package manger and I was able to down grade to vs 2 and get it working, is there any plan to upgrade the dlls to use v3, thanks.

abuffie avatar Mar 10 '22 21:03 abuffie

same here, it asks for the version 12.0.0.0 though. any fix for that?

sagivmis avatar Jun 04 '22 19:06 sagivmis