我添加了 XBox Live Unity asset package到我的项目,我在 Unity 中收到此错误。它在 Visual Studio 中没有奇怪地显示,但它阻止我运行我的应用程序。
error CS7069: Reference to type `System.ComponentModel.INotifyPropertyChanging' claims it is defined assembly `System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089', but it could not be found
错误所指的行如下
JObject response = JsonConvert.DeserializeObject( request.text ) as JObject;
请求是一个Unity WWW
对象。
我正在使用 this asset package在我的应用程序中,但我已将其删除,因为看起来 Xbox Live 已经包含了该预编译的 dll?
最佳答案
所以看来 JObject
是问题所在。更改为 JContainer
无需进一步更改代码即可解决问题
关于unity-game-engine - 导入 Xbox Live 服务后出现 JSON.net 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42576689/