Since the upgrade to 15.5.1, my Xamarin project doesn't seem to work anymore.
When loading a page, I get this error:
System.MethodAccessException: Method Xamarin.Forms.View:.ctor ()' is inaccessible from method
MyApp.MyPage.InitializeComponent ()'
However, this page is built exactly like my other pages which are working and I have no idea where to start searching. Any ideas where this comes from? I use Xamarin.Forms plugin version 2.5.0.121934.
Edit: This is the content of the auto generated file where the exception comes up:
public partial class MyPage : global::Xamarin.Forms.ContentPage {
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Xamarin.Forms.Build.Tasks.XamlG", "0.0.0.0")]
private void InitializeComponent() {
global::Xamarin.Forms.Xaml.Extensions.LoadFromXaml(this, typeof(MyPage));
}
}