Nethereum
Nethereum copied to clipboard
Can't use unity yield requests, The type 'JsonSerializerSettings' is defined in an assembly that is not referenced. You must add a reference to assembly 'Newtonsoft.Json, Version=12.0.0.0, Culture=neutral,
Issue tracker is ONLY used for reporting bugs. New features, questions and support should be discussed on our discord channel first. Discord
Expected Behavior
Set and send request to ethereum blockchain
Current Behavior
Code doesn't compile
Possible Solution
Probably something to do with newtonsoft's dep in the project
Steps to Reproduce
- Simply import files
- extract in project
- tr to use the requests
Context (Environment)
Trying to read and write to the blockchain
Detailed Description
The error message i get is: Error CS0012 The type 'JsonSerializerSettings' is defined in an assembly that is not referenced. You must add a reference to assembly 'Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, (....)'. Assembly-CSharp
Possible Implementation
You either include the Json.Net included and disable assembly check or you use the Unity one.
having the same issue. could anyone explain the solution???
errors shown here... (btw the biginteger errors are cause by the json error)
You are using an old version of unity, can you upgrade it or do you need this version. Unity included json.net afterwards you can use this version directly or add a reference yourself https://github.com/Nethereum/Nethereum/tree/master/lib/com.unity.nuget.newtonsoft-json
updated to unity 2020.3.42f1 and error are gone but assembly errors are here. p.s assembly errors were there in unity 2018 and 2017 aswell.
Please use the https://github.com/Nethereum/Unity3dSampleTemplate as reference