Skip to content

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

Description

@abuffie

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions