我用的NuGet来Json.NET安装到我的团结项目,但问题是,当我启动它抛出 The type or namespace 'Newtonsoft' could not be found. Are you missing a using directive or an assembly reference
然而,这是在我的参考文献中,我有using Newtonsoft.Json;
我已经看过其他问题,但我无法找到一个有效的答案。我使用Unity 5和Json.NETJson.NET在Unity抛“类型或命名空间`Newtonsoft`找不到”
1
A
回答
2
。在统一的最新版本中,Newtonsoft.Json.dll
文件放入文件夹Assets/Plugins
。在Visual Studio中,突出显示Analyzers
在Solution Explorer
窗口。
。去Project
- >Add Reference
和选择之后Assets/Plugin
项目目录。而已。
可选:
在Unity 5.3,统一添加Json
系列化native support。您可以简单地使用它来转换为Json
并返回到class
。
相关问题
- 1. 类型或命名空间名称'Newtonsoft'找不到
- 2. 类型或命名空间找不到
- 3. 类型或命名空间找不到
- 4. 未找到类型或命名空间
- 5. 类型或命名空间名称“名称”找不到
- 6. 找不到类型或名称空间
- 7. 类型或命名空间名称“ApplicationUser”找不到
- 8. 类型或命名空间名称“异步”找不到
- 9. 类型或命名空间名称“CrystalDecisions”找不到
- 10. 错误:类型或命名空间名称“fileInfoNew”找不到
- 11. 类型或命名空间名称“SelectListItem”找不到,MVC3
- 12. 类型或命名空间名称“阿贾克斯”找不到
- 13. 类型或命名空间名称“T”找不到
- 14. 类型或命名空间名称“XmlConfigurator”找不到
- 15. 类型或命名空间名称“WebRequestHandler”找不到
- 16. 类型或命名空间名称“commonlib”找不到
- 17. 类型或命名空间名称“ConnectionOptions”找不到
- 18. 类型或命名空间名称“布尔”找不到
- 19. 类型或命名空间名称“SqlBulkCopy的”找不到
- 20. 类型或命名空间名称找不到 - C#
- 21. 类型或命名空间名称“异步”找不到
- 22. 类型或命名空间名称“大小”找不到
- 23. 类型或命名空间名称“连接”找不到
- 24. Xamarin.Android类型或命名空间名称“PlacePicker”找不到
- 25. 类型或命名空间名称HostAuthenticationFilter找不到
- 26. 类型或命名空间名称找不到
- 27. 类型或命名空间名称“的ServiceController”找不到
- 28. 类型或命名空间名称“IClientValidatable”找不到
- 29. 类型或命名空间名称“IgnoreDataMember”找不到
- 30. 类型或命名空间名称“ADONetAppender”找不到
谢谢,这工作。我觉得不要公平。再次感谢。 – bwfcwalshy