Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/xml/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
将System.Xml.Linq与mono命令行编译器一起使用_Xml_Linq_Mono - Fatal编程技术网

将System.Xml.Linq与mono命令行编译器一起使用

将System.Xml.Linq与mono命令行编译器一起使用,xml,linq,mono,Xml,Linq,Mono,使用C#/Mono中的以下代码 我犯了这个错误 error CS0234: The type or namespace name `Linq' does not exist in the namespace `System.Xml'. Are you missing an assembly reference? 这将是: dmcs -r:System.Xml.Linq.dll main.cs 我在尝试加载System.Xml.Linq时收到了相同的错误 您可以指定与第一个答案相同的命令行参数:

使用C#/Mono中的以下代码

我犯了这个错误

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

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

我在尝试加载System.Xml.Linq时收到了相同的错误

您可以指定与第一个答案相同的命令行参数:

csharp -r:System.Xml.Linq.dll
也可以从REPL本身中加载程序集:

csharp> LoadAssembly("System.Xml.Linq.dll");
csharp> using System.Xml.Linq;
它肯定存在
csharp -r:System.Xml.Linq.dll
csharp> LoadAssembly("System.Xml.Linq.dll");
csharp> using System.Xml.Linq;