Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
abuffie opened this issue Mar 10, 2022 · 1 comment

Comments

@abuffie
Copy link

abuffie commented Mar 10, 2022

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 com.unity.nuget.newtonsoft-json@2.0

"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.

@sagivmis
Copy link

sagivmis commented Jun 4, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants