将System.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? 这将是:将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时收到了相同的错误 您可以指定与第一个答案相同的命令行参数:
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;