How to convert existing solution to use Shell
I have a solution that does not use Shell. I would like to change it so that it uses shell. I created a new solution and copied the AppShell.xaml and .cs. I changed the namespace to the correct namespace. I then changed the app.xaml.cs to:
//MainPage = new MainPage();
MainPage = new AppShell();
Now in the AppShell.xaml.cs there is an error that InitializeComponent(); does not exist in the current context. No amount of cleaning , deleting the bin/obj folders will fix this.
Is there a way to start using shell in a project that has not used it up until now?
The app I am trying to change was created at least a year ago and the template used at that time created an app which does not have a AppShell.
What is your project type? MAUI or Xamarin? Please update your VS and nugget packages to the latest version.
What you said worked but VS and Win 11 do not help.
Did you copy or clone your project to VS in the win 11 computer and get the same issue?
Sign in to comment