When building the project, I encountered an Unhandled exception. System.MethodAccessException error. It seems that Cpp2IL.Gui.App.!XamlIlPopulate(System.IServiceProvider, Cpp2IL.Gui.App) is attempting to access a method it shouldn't, causing the build to fail.
Error Details:
Unhandled exception. System.MethodAccessException: Attempt by method 'Cpp2IL.Gui.App.!XamlIlPopulate(System.IServiceProvider, Cpp2IL.Gui.App)' to access method 'CompiledAvaloniaXaml.!AvaloniaResources.Build:/AvaloniaEdit.xaml(System.IServiceProvider)' failed.
at Cpp2IL.Gui.App.!XamlIlPopulate(IServiceProvider, App) in [LocalPath]\Cpp2IL.Gui\App.axaml:line 10
at Cpp2IL.Gui.App.!XamlIlPopulateTrampoline(App)
at Cpp2IL.Gui.App.Initialize() in [LocalPath]\Cpp2IL.Gui\App.axaml.cs:line 15
at Avalonia.AppBuilder.Setup() in //src/Avalonia.Controls/AppBuilder.cs:line 248
at Avalonia.AppBuilder.SetupWithLifetime(IApplicationLifetime lifetime) in //src/Avalonia.Controls/AppBuilder.cs:line 160
at Avalonia.ClassicDesktopStyleApplicationLifetimeExtensions.StartWithClassicDesktopLifetime(AppBuilder builder, String[] args, ShutdownMode shutdownMode) in /_/src/Avalonia.Controls/ApplicationLifetimes/ClassicDesktopStyleApplicationLifetime.cs:line 211
at Cpp2IL.Gui.Program.Main(String[] args) in [LocalPath]\Cpp2IL.Gui\Program.cs:line 25
When building the project, I encountered an Unhandled exception. System.MethodAccessException error. It seems that Cpp2IL.Gui.App.!XamlIlPopulate(System.IServiceProvider, Cpp2IL.Gui.App) is attempting to access a method it shouldn't, causing the build to fail.
Error Details:
Unhandled exception. System.MethodAccessException: Attempt by method 'Cpp2IL.Gui.App.!XamlIlPopulate(System.IServiceProvider, Cpp2IL.Gui.App)' to access method 'CompiledAvaloniaXaml.!AvaloniaResources.Build:/AvaloniaEdit.xaml(System.IServiceProvider)' failed. at Cpp2IL.Gui.App.!XamlIlPopulate(IServiceProvider, App) in [LocalPath]\Cpp2IL.Gui\App.axaml:line 10 at Cpp2IL.Gui.App.!XamlIlPopulateTrampoline(App) at Cpp2IL.Gui.App.Initialize() in [LocalPath]\Cpp2IL.Gui\App.axaml.cs:line 15 at Avalonia.AppBuilder.Setup() in //src/Avalonia.Controls/AppBuilder.cs:line 248 at Avalonia.AppBuilder.SetupWithLifetime(IApplicationLifetime lifetime) in //src/Avalonia.Controls/AppBuilder.cs:line 160 at Avalonia.ClassicDesktopStyleApplicationLifetimeExtensions.StartWithClassicDesktopLifetime(AppBuilder builder, String[] args, ShutdownMode shutdownMode) in /_/src/Avalonia.Controls/ApplicationLifetimes/ClassicDesktopStyleApplicationLifetime.cs:line 211 at Cpp2IL.Gui.Program.Main(String[] args) in [LocalPath]\Cpp2IL.Gui\Program.cs:line 25