Recently I Got problem with Newtonsoft class in unity. in the actual code every thing works fine but when I add watcher to JToken object I get blow error:
Exception of type 'System.MissingMethodException' was thrown: Method MetadataMethod(6000A0D Newtonsoft.Json.Linq.JToken::SelectToken,1p) could not be resolved on type MetadataClassType(Newtonsoft.Json.Linq.JObject)
or some times getting this one:
Exception of type 'System.Security.VerificationException' was thrown: Method with token 100665429 not found in type Newtonsoft.Json.Linq.Extensions
but the thing is it's only happens when I get it in debug and with watcher or Evaluate Expression.
it some times works fine but almost most of the time I get this error in debug mode.
in actual game the data is properly get and there is no problem in there I even assign data to string and it works fine in game but I just can't see the data in any way with debug mode on.
I try to remove All .csproj file and it doesn't work.
also have to mention it mostly happens to Newtonsoft.Json.Linq namespace not Newtonsoft.Json itself. so I can for example evaluate JObject but when I try to Evaluate JObject.SelectToken function I will get this error.