x


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 namespaceSystem.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?

more ▼

asked Jan 27 '12 at 07:54 PM

MariuszDraszczuk gravatar image

MariuszDraszczuk
16 1 1 1

(comments are locked)
10|3000 characters needed characters left

1 answer: sort oldest

Try dragging the C:Program Files (x86)UnityEditorDataMonolibmono2.0System.Xml.Linq.dll file into the unity project window like you would a texture or other game asset.

This seemed to work for me.

more ▼

answered Jun 03 '12 at 10:59 PM

createdbyx gravatar image

createdbyx
33 3 5 5

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x356
x44

asked: Jan 27 '12 at 07:54 PM

Seen: 2414 times

Last Updated: Jun 03 '12 at 11:19 PM