Search Unity

webplayer doesn't contain System.Xml.Linq

Discussion in 'Editor & General Support' started by serioustommy, Dec 10, 2013.

  1. serioustommy

    serioustommy

    Joined:
    Jun 12, 2012
    Posts:
    126
    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?
     
  2. radimoto

    radimoto

    Joined:
    Aug 23, 2012
    Posts:
    257
    I would also like to know why the Web Player doesn't support Linq ?
     
  3. jxxxxst

    jxxxxst

    Joined:
    Nov 3, 2012
    Posts:
    50
    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.
     
    Last edited: Feb 25, 2014
  4. boinged

    boinged

    Joined:
    May 8, 2013
    Posts:
    16
    Is there some way to request this? Could post a bug report but it doesn't seem like a bug, just an omission.
     
  5. boinged

    boinged

    Joined:
    May 8, 2013
    Posts:
    16