Sun*_*kas 13 c# linq mono monodevelop xamarin.mobile
我刚刚下载了适用于Mac OS X的"Mono for Android"/ MonoDevelop 3.1.1的试用版.我正在尝试使用XDocument解析一些XML.但我似乎无法找到我需要的导入:
using System.Xml.Linq;
Run Code Online (Sandbox Code Playgroud)
我收到以下错误:
The type or namespace name 'Linq' does not exist in the namespace 'System.xml'. Are you missing an assembly reference?
Run Code Online (Sandbox Code Playgroud)
在解决方案资源管理器中的引用下打开System.Xml引用显示其中没有Linq:
System.Xml
- References
- mscorlib
- System
- System.Xml
- System.Xml.Schema
- System.Xml.Serialization
- System.Xml.XPath
- System.Xml.Xsl
Run Code Online (Sandbox Code Playgroud)
有任何想法吗?
编辑:更多信息:
运行时:单声道2.10.9(tarball)
适用于Android的单声道:4.4.55(评估)
Monotouch:Xamarin.Mac:未安装
操作系统:Mac OS X 10.8.2
的System.Xml:
ant*_*ijn 22
您需要将System.Xml.Linq程序集添加到项目引用中; 在System.Xml.Linq不在System.Xml,但有自己的组装.
右键单击References解决方案窗口,然后选择Edit References.加System.Xml.Linq那里.
