maui-migration-samples icon indicating copy to clipboard operation
maui-migration-samples copied to clipboard

[MIGRATION] Migrating template Xamarin app to Maui

Open breetzn opened this issue 2 years ago • 0 comments

Environment

Are you on Windows or Mac: Mac Visual Studio Version: 17.4 build 2406 .NET version dotnet --version: 7.0.100 MAUI version installed: 6.0.547

Your code

Is it an app or a library? App What platforms does it target? Android/iOS Is it Xamarin.Forms? What version? (PS we recommend only migrating XF 5+) Latest 5.0+ Do you use Xamarin.Essentials? No Is your app/library open source? Share the link! https://github.com/breetzn/BlankXamarin

Migration

Did you follow the steps on the migration wiki Yes Was it successful? No What went wrong? Details please! [ ] I couldn't finish the steps [ X] It didn't build after I finished migrating [ ] I need NuGets that aren't compatible with MAUI yet [ ] It built, but the layout/UI is all messed up [ ] I have no idea what happened, please help!!!

I wanted to try the manual migration on a template forms app before actually doing it on my production application. I got the Xamarin.Android project to build and run, but not the iOS. I have some confusion with the results.

NOTE: I have the same issues when I cloned the ArtAuction example project.

  1. This may be trivial, but I do not understand how to properly add the configuration mapping to the app. The iOS project builds but I cannot run due to the configuration issue. image I see the same message when cloning the example ArtAuction maui migration: image The fix to this should definitely be added to the Migration guide.

  2. The project template for a NEW Maui application only has one project file. The Platform specific code and resources are now under the same hood, which is great! image I'm confused why the migration guide does not produce the same result. After following the migration guide, we still have the Xamarin.Android and Xamarin.iOS projects involved. Resources are still project specific. One of the benefits of Maui will be having one project file instead of three. Should the migration guide include the creation of the Platforms, Properties, and Resources folder? Also the deletion of the Android and iOS projects? Some clarification on this would be amazing.

Thank you!

breetzn avatar Nov 18 '22 14:11 breetzn