Migrate to .NET MAUI from Xamarin.Forms Faster Than Ever – .NET Upgrade Assistant for Visual Studio



The time is now to start out migrating, upgrading, and updating your Xamairn & Xamarin.Forms apps to .NET & .NET MAUI! It has additionally by no means been simpler to make this transition due to the brand new .NET Upgrade Assistant constructed instantly into Visual Studio 2022. I got down to offer you a whole information and walk-through of a real-world utility from begin to end. This can cowl customized fonts, NuGet packages, Xamarin.Necessities, Xamarin Neighborhood Toolkit, Photos, and extra! By the top of this video, you’ll be fully prepared to start out and end your migration!

Related Movies:





Hyperlinks:
Code: https://github.com/jamesmontemagno/MyMauiCoffeeApp
.NET MAUI Docs: https://be taught.microsoft.com/dotnet/maui/
Migration Docs: https://be taught.microsoft.com/dotnet/maui/migration/
.NET MAUI Dependency Injection: https://be taught.microsoft.com/dotnet/structure/maui/dependency-injection
.NET Upgrade Assistant: https://dotnet.microsoft.com/en-us/platform/upgrade-assistant

Weblog on Upgrading Xamarin.iOS & Android to .NET: https://devblogs.microsoft.com/xamarin/upgrade-xamarin-ios-android-to-dotnet6-dotnet7/

Be a part of this channel to get entry to perks:
https://www.youtube.com/channel/UCENTmbKaTphpWV2R2evVz2A/be a part of

👕 Purchase some swag! – https://jamesmontemagno.myspreadshop.com/
☕️ Purchase me a espresso – https://www.buymeacoffee.com/jamesmontemagno

Comply with:
👨‍💻 GitHub: https://github.com/jamesmontemagno
🦜 Twitter: https://twitter.com/jamesmontemagno
📄 Web site: https://www.montemagno.com
📰 Publication: https://e-newsletter.montemagno.com/

Chapters:
00:00 – Intro
01:00 – Migration Issues for Xamarin.Forms
03:00 – App & Code Walkthrough
03:50 – Set up & Use .NET Upgrade Assistant
09:15 – Fixing Complication Errors (variations between Xamarin.Forms and .NET MAUI)
12:45 – Merge code into new .NET MAUI Utility
19:00 – Fonts, Photos, and different Sources
23:30 – Platform Particular Code & Dependency Service/Injection
28:08 – Documentation overview for Migration
29:25 – Wrap-up and last ideas

Disclaimer: This channel, movies, and streams are created in my spare time and are a product of me… James Montemagno! They’re NOT formally affiliated or endorsed by Microsoft (my employer) in any approach. Opinions and views are my very own.

What’s on my hat? It’s the CLE clothes emblem as a result of I’m from Cleveland! Checkout their superior CLE merch: https://cleclothingco.myshopify.com/

What’s that artwork on my wall? It’s an authentic piece from the French road artist Gregos of La Butte Montmartre: https://www.instagram.com/p/BceZ1oNHiQx/

My Setup:
📷 Canon M50 Mark II – https://amzn.to/3P8R7lp
💡 Nanoleaf Components Lights – https://amzn.to/3umwJVW
🎙 Blue Spark Microphone – https://amzn.to/3qgtYkq
🎙 Blue Pop Filter – https://amzn.to/3jEWM3r
🤳 Rode Microphone Arm – https://amzn.to/2Z68AlE
🎧 Sony MDR7306 Headphones – https://amzn.to/372jxta
📲 Stream Deck – https://amzn.to/373Uk1n
🖱 MX Grasp 2S Mouse – https://amzn.to/3d7J2gj
⌨️ Tecware Phantom Keyboard – https://amzn.to/3aUP4y9

#dotnetmaui #xamarinforms #visualstudio #dotnet

supply

33 thoughts on “Migrate to .NET MAUI from Xamarin.Forms Faster Than Ever – .NET Upgrade Assistant for Visual Studio”

  1. Is the migration tool not supported for dotnet 8.0? I ran it and get errors on every XAML page. I also get really frustrating errors like "The type or namespace 'Maui' does not exist in the namespace 'Microsoft'" on autogenerated references by the tool. It claims every aspect of every part of every XAML layout I have is not found.

    Reply
  2. Good evening! Thank you for this great video!! We are trying to migrate our app to MAUI and we see that await Application.Current.SavePropertiesAsync(); is obsolete, do we have to user another thing or simply the Preferencies are saved automtically? THank you very much

    Reply
  3. Ran it on the app I'm current working on and it's come up with > 150k errors! 😅And that's after I've already manually separated anything that's not a View into a shared library that's not reliant on Xamarin.Forms.

    Reply
  4. Just as an FYI for everyone out there. James Montemagno, didn't give this video real justice. He made it seem so easy and seamless to convert from Xamarin to .NET MAUI. We are converting one of our apps, which is 100x more complicated than what he used in his video. While it will fix name spaces, there is so much work you have to do afterwards. We had library issues, had to rewrite code for new libraries. We had layout issues, control issues, popup issues, etc. It was nothing like he described. After 2.5 months, we have it converted over. While it works when you launch it on a Mac Book, we are still resolving bugs trying to launch it in a Windows Emulator. We have uninstalled and Reinstalled VS 2022, .NET 8, etc. Pushing .NET MAUI back in November 2023 was one of Microsoft's greatest mistakes. From my opinion .NET MAUI is not ready for a release. This is personally why I don't convert till something has been officially released (not beta) for at least 1 year. You run into so many problems. Sad part is they pushed the product out the door before it was ready and there is no support to call to say "hey why is your software not working?" After this conversion I think I am going to pay to go Native Android and Native iOS. Yes it costs more money, but I will have a lot less issues because I won't have to worry about Microsoft pushing a product that isn't ready.

    Reply
  5. I just ran the upgrade assistant on one of my projects. It appears to be mostly successful and did not give any errors related to the migration. However, it did not create a Platforms folder or any of its expected contents. Dotnet 8 is what I migrated to.

    Reply
  6. If we don't include iOS Android Targets and Unit Test projects our XF app sln has 16 projects. Can the Upgrade Assistant be asked to target them all at once? Do we manually upgrade each project from the bottom up?

    Reply
  7. Hi James. Are you aware that the app may run in the iOS simulator but won't build (i.e., archive for publishing)? MyMauiCoffeeApp/MyCoffeeApp.Shared/obj/project.assets.json' doesn't have a target for 'net7.0-ios'. I'm facing the same issue with an app we're migrating following the steps in this video. Even adding a blank .net standard class library project to an empty MAUI app results in a build error.

    Reply
  8. James, I am trying to convert my xamarin forms app to MAUI. I am trying to follow your video but when I select upgrade, the project template dropdown shows only "Empty project". I don't see "Maui application" like you show in your video

    Reply
  9. Great video, James! Thanks for making such content – it makes our lives easier) BTW, just in case you will have a spare minute, it would be really great to hear your thoughts on the latest announcement of VS for mac retirement. How the development on mac will now look like? I do know lot of people that just bought the mac machines in order to able to develop mobile apps with xamarin/maui. Should they now switch to Rider as alternative?

    Reply
  10. James – is MAUI in trouble? VS for Mac retiring really concerns me. I've poured a lot of time and resources into MAUI. It seems like a really small team, and Microsoft is being quiet about whether or not it's really committed to it.

    Reply

Leave a Comment