Xamarin.Forms - MethodAccessException при вызове InitializeComponent () внутри основного приложения - PullRequest
0 голосов
/ 13 января 2020

Я получаю следующее исключение:

System.MethodAccessException: метод Xamarin.Forms.Xaml.Diagnostics.VisualDiagnostics.RegisterSourceInfo(object,System.Uri,int,int)' is inaccessible from method GWallet.Frontend.XF.CS.App.InitializeComponent () 'at at (оболочка управляемая для- native) System.Object .__ icall_wrapper_mono_throw_method_access (intptr, intptr) в GWallet.Frontend.XF.CS.App.InitializeComponent () [0x00012] в /Users/knocte/Documents/Code/geTalbFFSF /obj/Debug/netstandard2.0/App.xaml.g.cs:22 at GWallet.Frontend.XF.CS.App..ctor () [0x00008] в / Users / knocte / Documents / Code / geewalletFRONTENDbug / src / GWallet.Frontend.XF.CS / App.xaml.cs: 10 на GWallet.Frontend.XF. Android .MainActivity.OnCreate (Android .OS.Bundle bundle) [0x00022] в / Users / knocte / Documents / Code / geewalletFRONTENDbug / src / GWallet.Frontend.XF.Android / MainActivity.fs: 33 at Android .App.Activity.n_OnCreate_Landroid_os_Bundle_ (System.IntPtr jnienv, системный. Int.tn0 встроенный в систему). 11f101b564894ca7af6c482ddc51c698>: 0 at at (оболочка динамическая * 10 13 * -метод) Android .Runtime.DynamicMethodNameCounter.7 (intptr, intptr, intptr)

Класс App является типичным простым классом, полностью равным классу, сгенерированному "hello-world" шаблон VS4Ma c:

using Xamarin.Forms;

namespace GWallet.Frontend.XF.CS
{
    public partial class App : Application
    {
        public App()
        {
            InitializeComponent();

            MainPage = Initialization.LandingPage();
        }
    }
}
...