webplayer doesn't contain System.Xml.Linq

Is there any reason why every other targets (iOS, Android, WP8 etc) work with System.Xml.Linq but not the webplayer? I know that the workaround is to copy the dll into assets but this means we need to rename/delete the dll file for other builds otherwise there’ll be duplicated symbols. It will be fine if there’s a webplayer specific dll folder like in WP8 but there isn’t. Is this intentional?

I would also like to know why the Web Player doesn’t support Linq ?

I’m bumping, this, because I just encountered this problem.

Every other Platform except the Webplayer can use System.Xml.Linq by setting the Api Compability Level to “Net 2.0”.
Why is that?

Also, adding the System.Xml.Linq.dll manually to the plugin or project folder gives me the following error:
“The imported type `System.Xml.Linq.XElement’ is defined multiple times” - which seems paradox to me.

Another Update:

It is possible to use System.Xml.Linq in a Webplayer Build, but not if there is an Editorscript using System.Xml.Linq at the same time.

Is there some way to request this? Could post a bug report but it doesn’t seem like a bug, just an omission.

Please vote here if interested in this feature: http://feedback.unity3d.com/suggestions/please-add-system-dot-xml-dot-linq-to-the-web-player

1 Like