Nethereum / Nethereum/Nethereum

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,

Open
#842 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
2.3k
Forks
744
PR merge metrics
No merged PRs in 30d

Description

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

image

  1. Simply import files
  2. extract in project
  3. 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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Unity project setup and the imported request files, then reproduce the Assembly-CSharp CS0012 error while using the yield requests. Check how the project references Newtonsoft.Json 12.0.0.0. Done means the project compiles and can set and send a request to the Ethereum blockchain.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, unity
Domain
blockchain, game-dev
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.