With the following code in C#/Mono,
using System.Xml.Linq;
I got this error.
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
That would be:
dmcs -r:System.Xml.Linq.dll main.cs
I received the same error when trying to load System.Xml.Linq in CSharpRepl.
You can specify the same command line argument as the first answer:
csharp -r:System.Xml.Linq.dll
Or you can load the assembly from within the REPL itself:
csharp> LoadAssembly("System.Xml.Linq.dll");
csharp> using System.Xml.Linq;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With