Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

How to implement missing .NET functions and where

Discussion in 'Windows' started by kscho, Mar 6, 2015.

  1. kscho

    kscho

    Joined:
    Jun 17, 2014
    Posts:
    59
    When porting my game to Windows Phone 8.1, I encounter many 'Reference Rewriter' error.

    I learn that I've to implement the missing functions myself, but I simply don't know how to proceed, like, how to write the functions, and where to declare the functions.

    Currently, I'm missing these functions:

    Convertall (6 variants)
    Compare (3 variants)
    System.Security.Cryptography.MD5CryptoServiceProvider
    System.Void System.Security.Cryptography.MD5CryptoServiceProvider::.ctor()


    This is a lot more complex than I expected.
     
  2. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,627
    If you use these in your own code, then write replacements in a differeant namespace and use those.
     
  3. kscho

    kscho

    Joined:
    Jun 17, 2014
    Posts:
    59
    hi, I don't use any of these functions. I'm an amateur in C#. Can you tell me what u mean by 'write replacements in a different namespace'? The Convertall and Compare are functions of some List and Dictionary types....
     
  4. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,627
    If you don't use them, then they probably come from some plugin that you use. You need to get a compatible version of that plugin then. That's not something you can fix yourself.
     
  5. kscho

    kscho

    Joined:
    Jun 17, 2014
    Posts:
    59
    thanks. I'll try to check whether it's possible to eliminate the plugin myself.
     
  6. kscho

    kscho

    Joined:
    Jun 17, 2014
    Posts:
    59
    I've done more investigation. The issue was caused by the SOOMLA plugin, which I used to make IAP for the iOS and android build. Since I don't use IAP in the WP export, stripping all the SOOMLA stuff away makes the errors go away.

    Thank you for your help again.