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

Plugins for windows Phone 8.1 doesn't work. Mono compiler errors.

Discussion in 'Windows' started by bolontiku, Aug 13, 2014.

  1. bolontiku

    bolontiku

    Joined:
    Oct 8, 2013
    Posts:
    4
    I am having problems when I try to develop plugins for WP 8.1 I build my fake dll and WP 8.1 class library. When I put my real plugin to
    Assets\Plugins\WP81 I am getting this error:

    Error 1 Internal compiler error. See the console log for more information. output was:
    Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime, Version=4.0.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.
    File name: 'System.Runtime, Version=4.0.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
    at (wrapper managed-to-native) System.Reflection.Assembly:InternalGetType (System.Reflection.Module,string,bool,bool)
    at System.Reflection.Assembly.GetType (System.String name, Boolean throwOnError, Boolean ignoreCase) [0x00000] in <filename unknown>:0
    at System.Reflection.Assembly.GetType (System.String name) [0x00000] in <filename unknown>:0
    at Mono.CSharp.RootNamespace.GetTypeInAssembly (System.Reflection.Assembly assembly, System.String name) [0x00000] in <filename unknown>:0
    ...


    It works for WP 8.0 though. Is WP 8.1 plugins not supported, has anyone tried ?
     
  2. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,627
    That actually a good question.
    I can't answer it now, but WP 8.1 is part of WSA, can you try to put your plugin under plugins/metro ?
     
  3. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,491
    Hi,

    you're putting them in a wrong directory. Probably it's our fault for having bad docs - I'll make sure it's fixed. Check this:

    http://docs.unity3d.com/Manual/WindowsUniversalApps-faq.html

    You're supposed to put them here: "Assets\Plugins\Metro\WindowsPhone81"

    Furthermore, if your plugin doesn't use explicit phone features which are not available on Windows Store (like vibration device), you can just build one plugin for Windows Store Apps and it will work fine for Windows Phone 8.1 (in that case, put it to Assets/Plugins/Metro).
     
  4. bolontiku

    bolontiku

    Joined:
    Oct 8, 2013
    Posts:
    4
    Yay it worked. I put them under Metro. I should have read the docs more thoroughly.
    Thank you.