Search Unity

"'XmlNode' does not contain a definition for 'Clone'..." only on Windows Store build

Discussion in 'Windows' started by Retruate, May 7, 2016.

  1. Retruate

    Retruate

    Joined:
    Jul 5, 2014
    Posts:
    111
    Hi,

    My game builds fine on Android, but when building for Windows Store - Universal 10, I get this error message.
    Code (CSharp):
    1. Assets\Scripts\StringsContainer.cs(28,52): error CS1061: 'XmlNode' does not contain a definition for 'Clone' and no extension method 'Clone' accepting a first argument of type 'XmlNode' could be found (are you missing a using directive or an assembly reference?)
    2.  
    I'm getting the error at this line.
    Code (CSharp):
    1. XmlNode child = root.ChildNodes[i].Clone();
    2.  
    I am using the System.Xml namspace.

    I have a feeling it has something to do with this, but I can't seem to find an answer.

    Tell me if you need to see more of my code.

    Thanks in advance :)!
     
  2. Retruate

    Retruate

    Joined:
    Jul 5, 2014
    Posts:
    111