Hi. I've got an issue with Xml.Linq. I'm using it because I need XDocument.
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?
Linq' does not exist in the namespace
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.
Answer by createdbyx
Jun 03, 2012 at 10:59 PM
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! Worked for me. The error is gone. But, is it normal to do it this way? Cause seeing the dll file on my Unity editor seems kinda weird.
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
To help users navigate the site we have posted a site navigation guide.
If you are a new user to Unity Answers, check out our FAQ for more information.
Make sure to check out our Knowledge Base for commonly asked Unity questions.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
Answers and Comments
8 People are following this question.
UnityVS 1.8 possible bug with XML.Linq
External mapping in Unity ?
A node in a childnode?
command-line build only: error CS0234: `Linq' does not exist in the namespace `System.Xml'
Getting NullReferenceException: Object reference not set to an instance of an object when using Linq reading an xml file.