xml - 将 System.Xml.Linq 与单声道命令行编译器一起使用

标签 xml linq mono

在 C#/Mono 中使用以下代码,

using System.Xml.Linq;

我遇到了这个错误。

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

What assembly reference do I need to use System.Xml.Linq with mono?

dmcs /r:???? main.cs

最佳答案

那就是:

dmcs -r:System.Xml.Linq.dll main.cs

关于xml - 将 System.Xml.Linq 与单声道命令行编译器一起使用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4088186/

相关文章:

c# - Directory.GetFiles() 但仅包含具有特定内容的文件(例如 "my file contents")使用 C#

linux - 如何使用 GtkSharp 的 Chromium 嵌入式框架?

Android XML 对象序列化

xml - 逐行读取 XML 文件

c# - 根据除等于之外的条件连接两个列表

c# - SQL 查询 CAST 到 int + 1 到 LINQ

ubuntu - Monodevelop 无法在 ubuntu 上启动?

macos - Mono c# 控制台应用程序,创建独立的 mkbundle 错误

xml - 具有命名空间的 PowerShell XML 选择节点

Python 从 XML 中删除 &#xD