MarkerMetro / MarkerMetro.Unity.WinLegacy

Windows Store & Windows Phone Unity Plugin - Implements missing .Net APIs
https://www.nuget.org/packages/MarkerMetro.Unity.WinLegacy/
MIT License
10 stars 4 forks source link

Reference rewriter errors #23

Open theSoenke opened 8 years ago

theSoenke commented 8 years ago

When i build my project with Unity 5.1.2 i get multiple Reference rewriter errors

Reference rewriter: Error: method System.Boolean System.Type::get_IsAbstract() doesn't exist in target framework. It is referenced from MarkerMetro.Unity.WinLegacy.dll at System.Boolean MarkerMetro.Unity.WinLegacy.Reflection.ReflectionExtensions::IsAbstract(System.Type). UnityEngine.Debug:LogError(Object) PostProcessWinRT:RunReferenceRewriter() (at C:/buildslave/unity/build/PlatformDependent/WinRT/SharedSources/CSharp/PostProcessWinRT.cs:507) PostProcessUniversal81:RunReferenceRewriter() (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/PostProcessUniversal81.cs:118) PostProcessWinRT:Process() (at C:/buildslave/unity/build/PlatformDependent/WinRT/SharedSources/CSharp/PostProcessWinRT.cs:98) PostProcessUniversal81:Process() (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/PostProcessUniversal81.cs:42) UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()

And two similar error messages for these methods:

Error: method System.Boolean System.Type::get_IsPublic() Error: method System.Boolean System.Type::get_IsVisisible()

Any idea how to fix this?

robertocaldas commented 8 years ago

Hi theSoenke It looks like we got a problem with Unity 5.1.x, thank you for pointing that out. Meanwhile, could you please try using Unity 5.0.x? We are successfully using it with 5.0.2 in many projects here. Cheers