Breaking .NET MAUI News!1!! And the Preview 8 Updates

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
we interrupt this program for breaking news from don at maui land tune in as the story develops so before we dive into anything here let's just talk about what is happening with don and mao because there was a blog post that we're going to go over in a little bit here that announces that.net maui has been delayed so how much it's going to move to q2 of 2022 it was supposed to be finished in november of 2021 um but you know it's not quite where we wanted to be yet um so instead of giving you something that is not something that delights you we are pushing it back a little bit to q2 of 2022 which gives us a little bit more time to fine-tune all the things um wait for visual studio to be out of preview wait for project reunion to be out of preview all kinds of dependencies that we have that we are building upon to make something awesome out of dawn and maui so you know it's it's all for the best i can totally imagine that you are a little bit disappointed i am as well but you know it's it's going to be for the better so i hope that you agree with me that by pushing this back a little bit it will be better for everyone and you will have a more enjoyable experience when trying out dot and maui when it actually is available so it will be available in november it is available now but it will be available in november as still a preview hopefully all the bits you know are much more stable than they were for the past few months i mean every release is basically more stable than the previous one and more things are implemented so there's more and more to play with and more and more um details are coming out and you can see how you can convert your app your xamarin forms app into a done and maui app or how you should shape up your new.net maui app but the actual you know ga quality um whenever we are saying you can go to production with this app that is going to happen in the second quarter of 2022. now a lot of people also have asked like what is that going to do with xamarin forms because you know it was going to be supported until november 2022 a year after the ga of don and maui so that date of course will move as well the day that don and maui will reach ga is when the 12 months will go into effect so um 12 months after the don and maui ga examine forms will still get updates so that's still a lot of updates and we're planning to do service releases from now on each month a lot is going on there also with the project boards with people who are finding some issues important so make sure if there's something that you want to see included there i can promise that everything will be included there because there's a lot of open things right now but you know i would like to work together with you with community to make xamarin forms 5 the best version ever so that we leave it behind cleanly something that everyone can work with something that everyone can still create their apps with if that's what you want so that's kind of where it's at with don and maui xamarin forms and now let's just dive into what is new in visual studio preview 4 and done maui preview 8 i think and here we are in the blog post by scott hunter this time not david ortnow as usual um and here is a very kind of extensive explanation of where we're coming from what we're trying to do with dot net 6 and dot net 5 and where we're coming from rc1 so.net 6 and asp.net and all kinds of other things that are going to be in done at 6 are at release candidate 1 right now and then you know it goes over to dotnet maui with basically the story that i just told you so go live um it will be released the next release of dotted maui packages when dot n6 rc2 releases will indicate preview in the version so it will be still a preview for some time until we can guarantee that it will be ready for production so please keep it coming all the feedback of course we have been asking for feedback we got a lot of feedback from you which is really really awesome and we look forward to a high quality release early next year but let's take a look at some of the features that you can already use now which are added today so let's go over to the dot and maui preview 8 highlights there is some stuff here i'm going to go over to some of this in in a little bit so here we have the visual studio 2022 preview for productivity and if you go into the installer you can see it right here let me see can i zoom this there we go we can now see this is renamed to mobiledevelopmentwith.net i think that was maybe already the case now the xamarin logo will disappear over time but not yet because we need it for a little while longer but here on the right you can see that it now has these check marks for xamarin and also.net maui so this is kind of like the replacement for net workload install that you had to do manually or maui check or all that kind of thing so here you can see that things are really coming together that visual studio is now catching up with um while catching up you know it's all these teams trying to do things independently but now the dot and maui bits are incorporated here as well so it will become easier and easier to install this and try this out so that is what's happening in the installer and once installed you can go over to visual studio you can say file new dotnet maui application it has a new fancy icon as well and you will get a new project we will see that in a little bit now what even surprised me and i'm not even kidding here is that there is a xaml live previewer i think we had a previewer before and then it was discontinued and now we have it again which is i think a little bit different than the previewer before because this only seems to work whenever the application is actually running so it's kind of like a mirror of your emulator which is showing within visual studio but it's already i don't know where this is going because i didn't know that it was coming in the first place but what this already does is give you the ability to zoom in and out to add some ruler so you can really you know get that fine-grained pixel by pixel control over all the things um that is really cool and who knows this is in there now so maybe in the future more possibilities will be added i don't know so that is really cool now example heart reload works really well with android ios ios a quick note on windows via hot restart or a remote build host so basically all the ios bits but only on windows at this time because visual studio for mac is another thing that is going through a big rewrite of things i don't think the schedule is out that is out yet for that so that's coming as well so also there we have enough space now suddenly to wait for visual studio for mac to also support.net maui and that will make things better as well but for the time being you can do anything on windows because ios via hot restart hot restart allows you to plug in your physical ios device and deploy it through windows no mac needed just to your phone and you can test it like that if that's something that you'd like to see in a future video please let me know down in the comments and i'll be sure to make something on that as well and.net hot restart is working together with xaml have reload on android ios and windows 2. so now the the code changes that you make while the application is running and the example changes that you are making will all automatically update your apple your running application so you don't have to stop and redeploy you can just do that in your running application all the state is being preserved and you can just continue developing your application while it is actually running that really blows my mind um so a little note when you create a new project you'll see the windows platform is now also a inside of our single project so no more separate wind ui project it's now inside of our single project but to enable it you first need to install the windows app sdk extension for visual studio 2022 and then you have to uncomment a line in the target framework in your cs proj files now of course in future releases this will change but for now we have to do this because again the tooling is not really you know at the same level so we have to do these things manually in order for us to work now the windows app sdk you can find it here i will place the link down in the video description for you to find you just download that install it it's not very hard it just next next finish even i could do it so you know if i can do it then you can definitely do it so you need to install this one and whenever you do you go over to your file new.net maui application you open the cs proj of that single project and whenever you do you will see here this has this target frameworks condition ms build is ios not ios i'm so used to talking about ios is os platform windows and blah blah you just need to uncomment this line so let me just do that right now and now everything should work with your windows target as well so let me just close down this one see what else is in the blog post and then just go over to visual studio and see it all works so we also have a couple of.net maui sdk updates um and mostly what the team has been doing here is bringing it more in line with asp.net core and blazer today so where it was the program.csb4 now we have the maui program and that has this create maui app which has the app builder so the generic host is now very much included that was already a little bit the the thing with earlier previews but now you know it really is shaping up into its final form um so this should look familiar use maui app configure fonts you can wire up your custom handlers your custom renders if that's what you want but now in each platform in each target specific platform the platform specifics which is still in the same project but well it gets kind of confusing but it will become more and more clear over time hopefully so in your android main application.cs you can now see that we do this override maui app create maui app and this reaches out to maui app create maui app here so that you have this instance of the maui app object that you can reach into and do some stuff in a single point so that's really cool now for since we're talking about android anyway um android 12 api 31 is now the default for dotnet six applications building for android um i'm guessing this is talking about the target sdk not about the minimum sdk because the minimum is going to be i don't know less i don't know what it is from the top of my head um but this will be the the default target sdk for now and there's a couple of notes about that here as well other changes so this one is kind of a bigger one we had the min height request and the max height request and some other things the width as well we have dropped the request here because that didn't really make much sense so we're dropping the request and it should now be min height max heidemann with mac with um which is a breaking chain so if you're going over from xamarin forms to dotnet maui then be sure to update these names if you're using that in your example or in your code because that is now going to break your code a simplified method for appending behavior to any control mapper improvements to shell so i had a couple of questions if shell is going to be part of dot and maui absolutely it's in there right now um refresh view absolute layout so that is something that i created a kind of little bit confusion with my previous video myself by saying that absolute layout might disappear um definitely not absolute layout and relative layout and all the layouts are going to be right here in dot net maui so here they are they were just you know you had to use the renderer version for now because it wasn't ported to done and maui yet but now the absolute layout is it's absolutely there um so and other things right to left of course very important as well and button dot icon image source so you know updates all across the board and there's going to be more and more and more updates as well so here is the create new project down and raoui app has a shiny new icon so that is really cool and of course as always feedback welcome i already mentioned it just go over to the repository github.com.net maui see the product roadmap and you can still see the status wiki i always love to pull this up because you know it shows the status of all the controls and the properties that are updated you can see there's more and more green in here and the things that are not green are actually in progress so this is very much nearing completion but there is still some work to do but you know it is the way it is and it's going to be for the better now let's hop over into visual studio real quick and let's see um what some of these new changes are in action so i'm going to open up a visual studio 2022 here um preview 4 so all the latest new bits are right here let's first go to our solution explorer and confirm that here in the platforms indeed there is now a windows folder with all the windows bits in here as well so you know we now truly have a single project um in here that we can use to run all of our targets how amazing is that i it's truly it's blowing my mind still and here we have that maui program so um this is kind of like the file name changed i think some naming might have changed here as well and this is now public static so if we go to actually see here in android and like i said in the main application you will see that this protected override maui app create maui app it will go to create this maui app and you can reach it also here from your platform specific code so that is well nice to have for some scenarios same of course for ios i expect it to be in the app delegate right here so that is right here in the templates you don't need to do that yourself you can just do that from here probably for you know things of like registering things in the dependency injection container something like that i don't know i need to think a little bit more about what this all entails but it's in here for you to use there's probably a good reason i have to check out the pr that added this what was the exact reason for it and here you can see that we now have the android emulator ios simulator some of this was already in here and we now have the windows machine i'm going to start with the android emulator now so let's just click this build and i think the emulator was already running here so this should just come up here in the emulator but as it is coming up in the emulator we will also see the xaml live previewer coming up as well we can see the dotnet maui app coming up in the emulator takes a little while and here it is so this is the template that we have seen before a couple of labels welcome to don and maui click me so whenever we do this little counter goes up as well but if i slide this to the side you can see that we now also have this example live preview which exactly mirrors what is going on here because we can also see the current count is updating in this thing as well so it kind of mirrors what you're doing but now you can add rulers to this you can add multiple ones so you can you know have a good pixel perfect thing you can move them you can delete them you can you can give them colors i think you can zoom in and out here and everything that you will change so let's go back to our example right here and let's make this where is this hello world let's make this maui app awesomeness i don't know something like that save it and you can see that it updates automatically there is a thing going wrong where it doesn't center anymore suddenly maybe that's better in the emulator no it exactly mirrors all the bugs also between these two things something that is still to be fixed i'm sure but you can see that this updates automatically between the two so example how to reload back in action between this example live preview and the emulator as well so let's actually see if we can also change a little bit of code and if the net hot reload works so let's go into [Music] our main page example cs right here and instead of doing plus plus let's make it count plus is and let's make this 10 so that it goes by 10 at a time i saved it i don't know if i need to click this little hard reload button here i just saved it so let's see what this does um nope it still does this so let's click this hard reload button and i think it then applies my code changes and whenever i do this now it should go with 10 at a time see now it goes with 10 30 40 50. oh my gosh this is this is kind of amazing right so i can just change code while my app is running don't need to stop or restart this is just on here and making these changes for me so this is a big improvement for your development experience because this makes it so much easier to make these changes and that is kind of what's new in dotnet maui preview 8. i'll leave it to you to try out the windows project and maybe the ios one getting it running with the i don't know if the remote simulator actually already works again um but at least you know through hot restart plugging in your ios device into windows directly and seeing that work is pretty magical as well again if you don't know how to do that or you want to me to show it to you let me know down in the comments below and i'll be sure to make a video on that as well of course i'm a little bit sad about you know the pushback on the date of don and maui ga but on the other hand we get a lot of more time to get the excitement of incremental changes each month with new don and maui versions the tooling coming together everything shaping up for you know the best product that we can put in your hands and give you a wonderful experience right from day one because that's all that we're doing it for um thank you so much for watching again one of my update videos on maui be sure to like this video if you've actually liked it subscribe to my channel for more updates coming your way and you'll be notified of them automatically you don't have to do anything they'll just be delivered to you through a notification if you also ding that bell and for the rest i'll be seeing you for my next video keep coding [Music]
Info
Channel: Gerald Versluis
Views: 3,824
Rating: undefined out of 5
Keywords: .net 6, .net maui preview, .net maui, .net 6 maui, dotnet maui, xamarin forms, .net 6 maui preview, .net maui example, .net maui template, .net 6 xamarin, maui dotnet 6, .net maui shell, dotnet maui preview, .net maui preview 6, dotnet maui install, Visual Studio 2022, VS2022, XAML Hot Reload, .NET Hot Reload, .NET MAUI Xaml Previewer
Id: Iu2KA3dAcM8
Channel Id: undefined
Length: 19min 4sec (1144 seconds)
Published: Mon Sep 20 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.