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

  Рет қаралды 29,528

James Montemagno

James Montemagno

Күн бұрын

Пікірлер: 65
@mimo5515
@mimo5515 Жыл бұрын
Nice video for those who were using xamarin forms. Still no news on the InAppBilling video? 😮
@timothydog76
@timothydog76 Жыл бұрын
This video drops just in time as I finish up a month-long conversion of our Xamarin.Forms app to MAUI.😂It's been a ride! Not a very smooth one unfortunately.
@batcodes1690
@batcodes1690 Жыл бұрын
Can you please share your experience and pain areas?
@divanvanzyl7545
@divanvanzyl7545 Жыл бұрын
Please share your suggestions. Ive just started with the upgrade.
@timothydog76
@timothydog76 Жыл бұрын
@@divanvanzyl7545 Before migrating evaluate all of your 3rd party libraries to see if they support MAUI. I eliminated a bunch of them with out-of-the-box features. Create a new MAUI app and migrate the code. It's the only way to do it that worked at all for me. Expect MANY build errors at first. I worked through at least 600 errors before the app would build (and that's with running the upgrade tool already). When it finally built then I got a slew of XAML parse errors before the app would run. If you have a lot of Xamarin.Forms custom renderers expect to spend a lot of time converting them to handlers/mappers. I ended up eliminating 90% of my custom renderers. Also expect to spend time tweaking the UI. For me a lot of the views looks different mainly because I had to switch to the new Border control from a 3rd party control we used in XF. That's all I can think of off the top of my head. I'm actually still working on the upgrade right now trying to figure out why the Mopups MAUI popup library looks broken in iOS but not Android. Maybe things will go smoother for you. Good luck!
@batcodes1690
@batcodes1690 Жыл бұрын
@@divanvanzyl7545 I have also started migration. I have created seperate MAUI project and started copy pasting each code and resolving compile time issue.
@PeteMidg
@PeteMidg Жыл бұрын
Me too, my Xamarin forms project contains about 70 pages, sqlite, push notifications, old wcf service references, and is being tricky when it comes to getting the new 'Core' upgraded class library to build alongside the 'old' platform folders. One issue I'm getting when trying to pair to Mac concerns it claiming that there are duplicate manifest ID (16.4.8825-net8-rc1 for maccatalyst) that conflicts with the same ID but for iOS within the c:\program files\dotnet\sdk-manifests\8.0.100-rc1 folder. Baffled!
@dtcartoon
@dtcartoon Жыл бұрын
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.
@JamesMontemagno
@JamesMontemagno Жыл бұрын
.NET MAUI is full steam ahead. The team has a big push in .NET 8 and the new VS Code extension
@Tommor81
@Tommor81 Жыл бұрын
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?
@Tommor81
@Tommor81 Жыл бұрын
We got stuck on one of the first steps of the upgrade assistant and can't find any information on how to fix. The project template "maui application" doesn't exist. We have downloaded ".NET MAUI Project and Item Templates" closed the program and tried again. We are on the latest version of Visual Studio 2022. Any help anyone?
@gregorymoore2877
@gregorymoore2877 Жыл бұрын
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.
@sigma_z
@sigma_z 6 ай бұрын
You need to create those separately. The migration tool only creates a library.
@cruisingaddict9695
@cruisingaddict9695 Жыл бұрын
We need an updated Admob package for Maui!
@JamesMontemagno
@JamesMontemagno Жыл бұрын
Should be updated - www.nuget.org/packages/Xamarin.GooglePlayServices.Ads
@JamesMontemagno
@JamesMontemagno Жыл бұрын
Not much has changed for integration, good post: startdebugging.net/2023/11/how-to-add-admob-to-your-maui-app/
@yoriichi28
@yoriichi28 Жыл бұрын
Hello boss can you please make a video on Xamarin native to .Net MAUI
@AngeloLazzari
@AngeloLazzari 6 ай бұрын
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
@MartinFromIowa
@MartinFromIowa 4 ай бұрын
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.
@yaroslavpelyukh4763
@yaroslavpelyukh4763 Жыл бұрын
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?
@JamesMontemagno
@JamesMontemagno Жыл бұрын
I think the blog outlined it fairly well, but a move towards VS Code as the main go to is what I’ll be doing. Or you can use a Windows VM with VS or a Dev Box is another options. Or rider as well is a great option.
@jcubero001
@jcubero001 Жыл бұрын
Rider
@explanationofapplications2015
@explanationofapplications2015 3 ай бұрын
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 ?
@ZF-CVA
@ZF-CVA 25 күн бұрын
Open a command line and run it
@adilbangush5014
@adilbangush5014 Жыл бұрын
Can you make one video in dotnet Maui android, that how we read OTP automatically.
@PratikSolanki88
@PratikSolanki88 Жыл бұрын
Why can’t we upgrade XamarinAndroid and XamariniOS using the tool? I am asking it because I tried to upgrade it using the tool.
@JamesMontemagno
@JamesMontemagno Жыл бұрын
Moving from XA and XiOS is actually pretty easy just change the csproj for the most part. It is a simple migration as hardly any api changes. Take a look at the docs I linked to.
@arunrajramalingam2512
@arunrajramalingam2512 Жыл бұрын
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
@JamesMontemagno
@JamesMontemagno Жыл бұрын
2 questions… do you have the latest version of upgrade assistant? Check extensions manager. Are you selecting the net standard shared code project? If still can’t do it, try the cli
@batcodes1690
@batcodes1690 Жыл бұрын
How to do MAUI migration using MAC machine?
@JamesMontemagno
@JamesMontemagno Жыл бұрын
There is a CLI version of the tool available
@ashutosh-l7p
@ashutosh-l7p 10 ай бұрын
I got error as There are no target frameworks found to which your project could be upgraded.
@Toxicwaste79
@Toxicwaste79 8 ай бұрын
Had the same problem. You can try the following: In the upgrade assistant choose "Upgrade project features" and then "Convert project to SDK style". After this, the installed frameworks were shown.
@neil9363
@neil9363 Жыл бұрын
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.
@bitbull-ltd
@bitbull-ltd 7 ай бұрын
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.
@JamesMontemagno
@JamesMontemagno 7 ай бұрын
You got this!!!! 1 error at a time :)
@MunkiiYebee
@MunkiiYebee Жыл бұрын
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?
@SaveTheHedgehog
@SaveTheHedgehog Жыл бұрын
Do I need to upgrade my referenced xamarin forms nuget packages beforehand? To be compiled the main project?
@JamesMontemagno
@JamesMontemagno Жыл бұрын
When you upgrade they should be uninstalled automatically.
@doxpi64fr
@doxpi64fr Жыл бұрын
Is NET Upgrade Assistant going to be on visual studio 2022 for MAC ??
@JamesMontemagno
@JamesMontemagno Жыл бұрын
You can use the CLI on a Mac
@JamesMontemagno
@JamesMontemagno Жыл бұрын
.NET Upgrade Assistant on Mac and Linux?? #dotnetmaui #coding #visualstudio
@Tommor81
@Tommor81 Жыл бұрын
James, or if anyone else can help. When we do this, the Project template “maui application” doesn’t exist. What are we doing wrong?
@souleymaneba9272
@souleymaneba9272 Жыл бұрын
.NET MAUI itself was full of bugs when I tested it around Feb 2022. A simple label with multi-binding was crashing the app. After investigation it was a well old known bug, lol. At the time I thought that people saying to wait a couple of years was exagerating... I'd say that in 2026 MAUI XAML should be ready. But wait, Xamarin form end of support date is in may 2024, 😉.
@RichaMaheshwari-ht4iu
@RichaMaheshwari-ht4iu 9 ай бұрын
Hi @all if any project is complete in Xamarin project so is this mendatory to migrate in .net MAUI
@AnisaMzher-ru4zg
@AnisaMzher-ru4zg Жыл бұрын
Gif images not play animation android platform?
@gwisekor
@gwisekor Жыл бұрын
Do you not specify Android Version in Application>Android Targets> Target Android Framework?
@JamesMontemagno
@JamesMontemagno Жыл бұрын
It is specified in the csproj now for you.
@divanvanzyl7545
@divanvanzyl7545 Жыл бұрын
I dont have an "Upgrade" option when right-clicking on my Xamarin.Forms .csproj file. How do I address this?
@JamesMontemagno
@JamesMontemagno Жыл бұрын
Did you install the upgrade assistant extension?
@RichaMaheshwari-ht4iu
@RichaMaheshwari-ht4iu 9 ай бұрын
Is there mendatory to migrate the Xamarin form into MAUI is any project is completed in Xamarin form please suggest me
@MilfH69
@MilfH69 9 ай бұрын
Hey, Xamarin is being deprecated on May 31, 2024 so eventually if you don't migrate you will not be able to submit to the app stores and there will be no more security fixes or bugfixes. So it is advised to migrate.
@RichaMaheshwari-ht4iu
@RichaMaheshwari-ht4iu 9 ай бұрын
@@MilfH69 Thanks for reply but I have a doubt i.e if I follow the Microsoft tool for migrate there is lot of issue I am facing in my project and some time compiler is not detect and tell the proper error so is there any another way except manual migration and how we migrate Xamarin to MAUI in Mac
@SandipAhluwalia
@SandipAhluwalia Жыл бұрын
Can your dependencies target .net 6 or 7 if your .net maui app targets .net 8?
@JamesMontemagno
@JamesMontemagno Жыл бұрын
of course!
@enricoroselino7557
@enricoroselino7557 Жыл бұрын
is this working if using third party nuget ? like telerik for example
@JamesMontemagno
@JamesMontemagno Жыл бұрын
It wont know how to upgrade those specifically, so you will need to go and grab some the latest nugets from them.
@Donbros
@Donbros 2 ай бұрын
Lmao your started compiling after few minutes - mine took 2 hours XD and still had to delete some methods for future fixing up
@Gardillus
@Gardillus Жыл бұрын
*than
.NET MAUI in .NET 8 - Everything you need to know!
18:51
James Montemagno
Рет қаралды 50 М.
🐚 Shell for .NET MAUI & Xamarin.Forms - What, why, and how?!?!
16:51
James Montemagno
Рет қаралды 37 М.
Почему Катар богатый? #shorts
0:45
Послезавтра
Рет қаралды 2 МЛН
진짜✅ 아님 가짜❌???
0:21
승비니 Seungbini
Рет қаралды 10 МЛН
Build hybrid apps with .NET MAUI
26:25
dotnet
Рет қаралды 9 М.
Real World Production Apps Xamarin.Forms to .NET MAUI Migration Live Stream
2:31:54
Learn .NET MAUI - Full Course for Beginners | Build cross-platform apps in C#
4:08:53
Upgrading your Xamarin Forms App to .NET MAUI | DevReach 2023
52:23
Progress Telerik
Рет қаралды 2 М.
DotNet MAUI MVVM: Deep Dive into MVVM Architecture with .NET MAUI
27:22
Material Design & Free Controls for .NET MAUI with UraniumUI
16:30
Gerald Versluis
Рет қаралды 21 М.
Styling Xamarin.Forms Apps with Reusable Resources & Styles
19:27
James Montemagno
Рет қаралды 15 М.
Upgrading from Xamarin to .NET MAUI | OD119
17:11
Microsoft Developer
Рет қаралды 9 М.
Dynamic App Themes in Xamarin.Forms - Light, Dark, & Custom Modes
25:13
James Montemagno
Рет қаралды 20 М.
.NET MAUI: Customize Controls with Handlers and Mappers
11:21
Gerald Versluis
Рет қаралды 15 М.
Почему Катар богатый? #shorts
0:45
Послезавтра
Рет қаралды 2 МЛН