Problem with System.Xml.Linq

Hi. I’ve got an issue with Xml.Linq. I’m using it because I need XDocument.

using System.Xml;
using System.Xml.Linq;

And I’m getting error in 2nd line:
error CS0234: The type or namespace name Linq' does not exist in the namespace System.Xml’. Are you missing an assembly reference?

MonoDevelop builds it perfectly without errors. When I try to run it in Unity3D it displays this error in console.
I’ve added System.Xml.Linq into References in my Project View. Still - error exists.

Any ideas?

Try dragging the C:\Program Files (x86)\Unity\Editor\Data\Mono\lib\mono\2.0\System.Xml.Linq.dll file into the unity project window like you would a texture or other game asset.

This seemed to work for me.

Thanks work great !!