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
Where could I find the original live stream of you making your coffee app?
What the!
I had so many issues, I had to re-write in Flutter. I'll never go back MS products the way they abandon developers.
Lmao your started compiling after few minutes – mine took 2 hours XD and still had to delete some methods for future fixing up
good job bro.
but i have warning :
Please install missing workloads by running "dotnet workload install maui-ios maui-android". ?
how i can fix it ?
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.
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
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.
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.
Is there mendatory to migrate the Xamarin form into MAUI is any project is completed in Xamarin form please suggest me
Hi @all if any project is complete in Xamarin project so is this mendatory to migrate in .net MAUI
I got error as There are no target frameworks found to which your project could be upgraded.
Hello boss can you please make a video on Xamarin native to .Net MAUI
We need an updated Admob package for Maui!
Can your dependencies target .net 6 or 7 if your .net maui app targets .net 8?
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.
Do I need to upgrade my referenced xamarin forms nuget packages beforehand? To be compiled the main project?
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?
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.
Environment.ExternalStorageDirectory
I need a tutorial on net MAUI
please
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
is this working if using third party nuget ? like telerik for example
*than
I dont have an "Upgrade" option when right-clicking on my Xamarin.Forms .csproj file. How do I address this?
Can you make one video in dotnet Maui android, that how we read OTP automatically.
James, or if anyone else can help. When we do this, the Project template “maui application” doesn’t exist. What are we doing wrong?
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?
Hi James, great video thank you. Is Maui production ready? There are a lot of posts saying it is full of bugs. Is this true?
Gif images not play animation android platform?
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.
How to do MAUI migration using MAC machine?
Nice video for those who were using xamarin forms. Still no news on the InAppBilling video? 😮
Do you not specify Android Version in Application>Android Targets> Target Android Framework?