c# - 如何在Unity C#脚本中使用System.Xml.Linq?

标签 c# linq unity-game-engine monodevelop q

使用 unity 和 c#,当我尝试这些行时

using System.Xml.Linq;

我收到此错误

The type or namespace name Linq' does not exist in the namespace System.Xml'. Are you missing an assembly reference?

所以我在网上通过大量搜索发现,Linq会出现问题,需要在MonoDevelop中手动添加引用。因此,我在那里添加了一个引用(通过右键单击解决方案 Pane 中的“引用”,单击“编辑引用”并浏览查找 System.Xml.Linq)

还是没有运气,

有什么想法吗?

最佳答案

我认为这篇文章会回答你的问题......

https://stackoverflow.com/a/875704/1246574

这与您遇到的问题几乎相同。

关于c# - 如何在Unity C#脚本中使用System.Xml.Linq?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17837363/

相关文章:

c# - System.Timers.Timer 随着每次迭代而衰减

C# Winforms 应用程序发送电子邮件失败 : The remote name could not be resolved: 'smtp. gmail.com ;操作超时

linq - 你会把你的 LINQ 查询抽象成扩展方法吗

c# - Unity 2018.3 的 Android 运行时权限

c# - Python 的 hash.digest() 使用什么 c# 等效编码?

c# - 在 .NET Compact Framework 3.5 的 HttpWebRequest 中指定客户端证书

c# - 使用 Linq to Entities 的装箱值

c# - 带有 Contains 的 LINQ Where 子句,其中列表具有复杂对象

c# - 如何在Unity(c#)中创建sqlite数据库?

java - Google Play 游戏无法再次登录