Matthew Joughin
Matthew Joughin

Reputation: 121

Xamarin.Forms - migrating from MVVMCross 4 to 5 - MvxFormsApp doesn't exist?

In MVVMCross's own guide to migrating from 4 to 5 they say this method should be as follows in the iOS Setup.cs class:

protected override IMvxIosViewPresenter CreatePresenter()
        {
            Forms.Init();

            var xamarinFormsApp = new MvxFormsApp();
            return new MvxFormsIosPagePresenter(Window, xamarinFormsApp);
        }

However the MvxFormsApp class doesn't seem to exist anymore - and yes I have changed all the nuget dependances to the new ones

This is the error: Error CS0246: The type or namespace name 'MvxFormsApp' could not be found (are you missing a using directive or an assembly reference?) (CS0246)

Upvotes: 1

Views: 425

Answers (1)

Matthew Joughin
Matthew Joughin

Reputation: 121

MVVMCross replied on Twitter that the class name has changed to MvxFormsApplication and the namespace it is in is MvvmCross.Forms.Core - so that has finally solved it. I have asked them to fix their migration instructions to give the correct class names and perhaps a note about the namespace

Upvotes: 1

Related Questions