AirConsole Unity 插件给出编译器错误 - 'DataContractAttribute' 找不到
AirConsole Unity plugin gives compiler error - 'DataContractAttribute' could not be found
我正在尝试在 Monodevelop 中编译我的 AirConsole 项目,以便我可以对其进行调试。
它给出了包含的 'Newtonsoft.JSON' 库的编译器错误:
The type or namespace name `DataMemberAttribute' could not be found. Are you missing an assembly reference? (CS0246) (Assembly-CSharp)
该项目在 Unity 中构建良好 运行;只有当您尝试在 Monodevelop 中点击 "Run" 以启用调试器时才会发生此错误。
有没有简单的方法来修复这个错误?
根据上面的评论:对于 Monodevelop,在您的解决方案的根文件夹中找到 References 文件夹,右键单击它,然后选择 Edit.
在出现的 window 中,搜索 System.Runtime.Serialization 并将其添加到您的参考文献中。这将使您能够构建和调试您的 Unity 项目。
我正在尝试在 Monodevelop 中编译我的 AirConsole 项目,以便我可以对其进行调试。
它给出了包含的 'Newtonsoft.JSON' 库的编译器错误:
The type or namespace name `DataMemberAttribute' could not be found. Are you missing an assembly reference? (CS0246) (Assembly-CSharp)
该项目在 Unity 中构建良好 运行;只有当您尝试在 Monodevelop 中点击 "Run" 以启用调试器时才会发生此错误。
有没有简单的方法来修复这个错误?
根据上面的评论:对于 Monodevelop,在您的解决方案的根文件夹中找到 References 文件夹,右键单击它,然后选择 Edit.
在出现的 window 中,搜索 System.Runtime.Serialization 并将其添加到您的参考文献中。这将使您能够构建和调试您的 Unity 项目。