C# – How to use System.Xml.Linq in Unity C# Script

clinqmonodevelopqunity3d

working with unity and c# and when I try these line

using System.Xml.Linq;

I get this error

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

So I found online, through a lot of searching, that Linq can cause problems, and you need to manually add a reference in MonoDevelop. So I added a reference there (by right clicking References in the solutions pane, clicking Edit References and browsing for System.Xml.Linq)

Still no luck,

Any ideas?

Best Answer

I think this SO post will answer your question...

https://stackoverflow.com/a/875704/1246574

It's pretty much the same issue you're having.