IOS Build issue

AmolDhagdiAmolDhagdi USMember ✭✭

I got the bellow issue

Severity Code Description Project File Line Suppression State Error Failed to resolve "System.Reflection.Emit.AssemblyBuilder System.AppDomain::DefineDynamicAssembly(System.Reflection.AssemblyName,System.Reflection.Emit.AssemblyBuilderAccess,System.String,System.Security.Policy.Evidence,System.Security.PermissionSet,System.Security.PermissionSet,System.Security.PermissionSet,System.Boolean)" reference from "mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e" MyApp.App.iOS

Please help me

Thanks

Best Answer

  • AmolDhagdiAmolDhagdi US ✭✭
    Accepted Answer

    I got the root cause of above issue for My app

    because of bellow code I am facing this issue

    public static string DeviceId { get { var id = default(string); #if __IOS__ id = UIKit.UIDevice.CurrentDevice.IdentifierForVendor.AsString(); #else id = Android.OS.Build.Serial; #endif return id; } }

    any other way to get Device Id?

Answers

  • AmolDhagdiAmolDhagdi USMember ✭✭
    Accepted Answer

    I got the root cause of above issue for My app

    because of bellow code I am facing this issue

    public static string DeviceId { get { var id = default(string); #if __IOS__ id = UIKit.UIDevice.CurrentDevice.IdentifierForVendor.AsString(); #else id = Android.OS.Build.Serial; #endif return id; } }

    any other way to get Device Id?

Sign In or Register to comment.