Dot net six, preview six is here, which means done.
And Maui preview six is also here with some brand new features for
cross-platform iOS, iPad, iOS, Android has an windows applications all built
with C sharp and XAML, I'm going to do a quick overview of what's new and
how to install it and get set up on your windows, PC, and also on your Mac.
So tune in.
Hey everyone.
I'm James Monson Magno, and I'm back again with another dotnet Mallee
preview hands-on preview video in a way.
Uh, I've done a lot of deep dives, uh, since the very, very first preview
all the way up to where we are now preview six and I'll do the next
preview and then the release candidates.
And whenever the GA's are leased and we'll have tons of content coming out,
but I've been trying to sort of minimize these down, give all of you out there.
What information you need if you're sort of following along with the
dinette Maui journey and also Don MLE blazer journey to, uh, to get you up
and running, no matter where you're looking to develop some big changes
happen in Donna Maui, preview six.
So let's check.
I like to always start where I started all the time, which is David's
excellent blog posts right here.
Um, and yes, he talked about not only done at six preview six releasing, but
the brand new update for Don and Maui, the multi-platform app UI, um, that
is releasing and it's all coming in in visual studio, 2022, preview two.
So now.
This is sort of like a future looking.
What you're seeing is they're all in on visual studio, 2022 preview to
you, which you can run side by side visual studio, 2019, but 2022 is
where the official support here is going to land, which is very exciting.
Um, and also it has this brand new.net Maui workload.
Other.net workloads.
We recently had David on the Xamarin podcast, which will soon
be the Don Emmaline podcast, uh, and talk all about it.
So this is cool, whole bunch of new things here.
Flex layout, modals view, clipping gestures, flex lab, and a whole lot more.
Um, additionally brand new updates to go along with the windows app.
So let's check this out really quick.
He walks through some of the brand new workload insulation
here, which is pretty cool.
Some new capabilities like gestures are now built in.
Um, this is actually cool.
You can kind of see here, he taps on different things and
they highlight each other.
Uh, clipping built in to do circle clipping and then native alerts as well.
So here, when we go and tap on different things, it pops up the
native sheets because the dinette Maui toolkit is running native capabilities
and native UI under the hood.
Also lots of improvements here on single project, but let's go
and check this out really quick.
I'm going to go ahead over and simply just bring up my command prompt here, midterm.
And now what you can do is you can do.net STK check.
What this'll do is it'll check to see what SDKs are installed on your
machine and report it back to you.
Not only the SDKs, but also the runtimes.
So here, for example, you can actually do like a Don SDK install
and get the latest versions.
I have the latest dotnet six preview here, and then it shows you all of
your runtimes, which I have a lot, obviously, but what's cool is you
can now do something called Dodson.
Workload list.
And these are.net workloads that go along with.net itself.
So you can imagine they'll be a lot of different dot workloads and what the
team shipped was done in Maui workload.
And then also STK workloads for Android iOS, Mac catalyst Macko
S N T V O S two was very cool.
And don't forget.
IOS also includes iPad iOS too.
So if you didn't have Maui installed here, all you need to do is to do.net workload,
install Maui, and you would be good to go.
Now we've been showing Maui check, which is a global tool that you can install over
using dotnet install and Don it Maui is still what you would want to use the Maui.
Dine-in Maui cheque.
Um, this is really cool, cause it's going to check not only your SDKs, but it'll
also check that open JDK is installed.
Correct?
Versions of visual studio are installed the Android emulators SDKs
web UI for a web view to, for edge found and all of those.net SDKs.
So this is going to give you everything that you need.
So Donnette, Maui check is definitely the way to go.
But then what you can do is I want to show you some of the differences here.
So what we're gonna do is we're going to make Durer and I'm going
to do a Maui six CD Maui six, and I'm just going to do.net new Maui.
Now I don't need to add anything else onto this.
When I do Donna new Maui, it's going to create a project inside
this folder called Maui six.
You can also give a dash and in the name, but I like to just be inside
the folder where it was created.
Um, and then I can just do start.
And then it'll open the folder here and I can right click
open with visual studio 2022.
So you definitely need to use visual studio 2022 in this release.
Um, you can of course compile via command line.
Like I've showed you before.
You can do all that as well.
But if you want to open up the project, browse around vs and deploy vs 2022,
you can still do some of the other things with vs code and command line.
So.
All right.
A few things that I want to show you really quick here is that they've
actually optimize this template.
When you do down at new Maui.
If it says there's a template, update, update those and recreate the
project, but one there's beautiful new icons and vs 20, 22 preview too.
But also check this out.
If I zoom in over here, you'll see that all of the platforms are
now right underneath the platforms folder that really cleans it up.
Just like resources.
Here is your fonts, your images that are here.
And again, you'll have all of your platforms, all that
platform specific code.
That's going to be able to go in there.
Now.
I also want to point out a few new things that are going on inside of the project.
So zoom.
And the first thing I want to show you is that there's this
new thing called use Maui.
So this is going to use the Maui workload.
And of course we're multitasking up here.
So this one project for the single project is going to deploy
iOS, Android, and Mac catalyst.
And of course, iOS includes iPad, iOS.
And then there's a, when you, I project over here too, for
windows, the team is working.
I think they want to combine those altogether as much as they can.
But for right now, this is the two projects.
So this has all the same information.
Remember Donna and Maui is all about creating beautiful native
cross-platform, AP, uh, UIs and apps for all the different projects.
But one thing that, uh, the team actually shows me is that use Maui
also, there's other things like you use a Maui essentials and you
can set that to true or false.
So if you, you had a non forms app, you could actually use a use, not
user, how he essentials there, you use Maui essentials, and that would bring.
The.net Maui essentials, which is the evolution of Xamarin essentials, which
gives you access to a hundred, some on native API from cross-platform code.
Now use Molly brings that in automatically.
So don't actually need to add that, but I just want to kind of point that out.
I think that's a really, really neat, it's all included automatically.
Yeah.
And this is gonna include all the same stuff where the Maui image for the app
icon, splash, screen images, fonts, all that good stuff down over my start-up page
over here, same exact thing we have used Maui app can Fe we're configuring fonts.
I also want to point out that we also have.
Um, some other things, um, inside of here, like configure fonts, configure services
that are inside of here, there's also the use Maui service provider factory, or use
Microsoft extensions per provider factory.
So if you're doing dependency injection IOC, you can add that
in there, which is really cool.
I'm also point out that over.
Any of the pages, you can not just come in and say using Microsoft dot Maui dot
essentials, but check that out and you can also use native things inside of here too.
So if I wanted to make, do a native popup here, this is now allowed.
So I could say await display alert, and I could say internet, and then
I could do something like, um, Connectivity dot, uh, network access,
and then say, uh, you know, uh, okay.
For example, on pop up then of course we'll do a two string dot two string.
There we go.
So you can now access native alerts too.
So we get increased account.
Do.
All that good stuff.
What's nice is that you can also deploy to your local iOS device too.
So if you plugged in an iOS device, you can plug that right in.
Um, and of course you can always deploy to your Android emulator.
That's what I could be doing right here.
And then you can pick which one you want to go to.
Whichever one you have open and just hit debug.
So that's going to give you everything in this project and the template
here hasn't changed too much.
We have a scroll view, a stack layout, a grid, a hello world.
And some buttons and some labels here.
And again, this is just a single project with all these different things in here.
If we zoom into the resources, notice that the app icons and the dotnet
bar and the fonts are all still 100%.
Cross-platform right here, too.
So there's going to compile up my Android application and then started in a debug
a window, um, inside of my Android emulator, whichever right over here.
So here we go.
It's compiling and it is deploying to my device and let's give it
a second here and let it go.
All right.
So the.net splash screen comes up, which again is cross-platform across all the
different platforms that it supports.
Uh, here we go.
And now we have, um, welcome to dine-in Maui.
Now I don't think that hot reload is working.
Let's see in this one yet.
I'm not sure if it is.
I think it was on windows.
I think the team is still working on some final integrations there.
Um, but definitely be on the lookout.
But again here, look at that.
I just hit count.
I checked the internet and I have internet, which is so cool.
And I can check and I can count and I can count up over and over and over again.
Check that out.
Boom.
Really cool.
So this is pretty much the same as you would have seen before.
Now, if you do want to get it running on iOS, you can deploy to your device.
Open up, uh, the command prompt and the bug launch via the command prompt
on Macko S for both iOS, Android, and Mac OS catalyst for windows.
If I said, this is my startup, there's gonna be one other thing
you need to install, which is the new single project MSI X packaging
tools for visual studio, 2020.
Now the windows app, SDK is now bundled, I believe inside of visual studio, 2022.
So you don't there used to be multiple installs that you need to do.
This is the only one that you need to do to get the win UI project
deploying for dinette Maui.
I had some problems installing in this from the ID.
So I actually hit download and then open the V6 file, the VSIX file
and just installed it that way.
So if you're running into issues, um, so if you go into the, uh,
extensions, manage extensions and you run into issues browsing and
downloading it here, just go ahead and download it manually from the website.
And you'll be good.
So, but then you should just be able to deploy it, uh, over to your, uh,
device or to your local windows machine.
Actually, if you get a prompt up and telling you that you can deploy
it's cause you don't have that MSI X installed that extension there.
So then yeah, that's uh, should just kinda boot up on my local machine.
We get all the diagnostic tools, everything like that.
And there we go now at it, talked to the team and they did say that
there was some quirkiness going on.
We actually get kind of like a rounded corners with when you.
There was some quirkiness going on in this latest one.
But I did notice that I think that hot reload was working.
I mean, that's still the word.
Yeah.
So you want to kind of double check that maybe working for you.
It may not be working for you.
Double-check that?
I did notice there were some drawings regressions in this build.
Um, but you still get it working, play around with it.
Give it a look.
Now, one thing that I like also is that David always kind of puts together
these really nice looking applications with all these really cool things.
And you always want to download this weather 21 project.
It is a really nice project that does a lot of the same things.
It has all the images, icons fonts, but it also does a bunch of native integration.
So it has.
Dependency injection.
It has a bunch of custom fonts.
It configures the lifecycle events here, which is cool.
It has a tray service and notification service.
It has proper models, view models, full MVVM inside of there.
And I can pop open this application and I like the settings page quite a bit too.
They kind of show off some of the new features in the weather app.
Last time we had a gradient into it, which was quite cool.
Um, but this time around, you know, the app is, is obviously very.
Um, and when you go into the settings, you get the image, download
from the internet, all clipped up.
You can pop around and you can tap with gesture recognizers.
Now on Imperial or metric here, you can tap on support, get
different popups that you want here.
Sign out.
You're getting all these different options that you would get with
those native dialogues that have been popping up on top of it.
So definitely check out the weather 21 sample.
I will doubt I'll put a link in the show notes below.
So you have access.
Now, of course you'll want to go through check and read everything in case I
miss something as I was going through my hands on preview, but definitely
give them feedback can always go to the dinette Maui, repo, check what the
team is up to how many issues there are pull requests that are active
projects that they're working on, but you can also come into the week.
And my favorite part is actually this roadmap.
We talked about this and this has been evolving as we went.
So in fact, a few different things happen here.
First and foremost, there was a lot more than David put in the blog post,
but he also mentioned desktop menu icons, device info, um, native views.
So you can embed Don and Maui views into a Nandani amount.
Some new shell styling and modals tabs page for when you, I, and new triggers.
Now they're planning done at six preview seven for August.
And again, we'll probably have another one here.
This will bring in app theme bindings, which didn't make it to preview four,
which I thought it did, but it's here.
It's going to have more borders.
Cross-platform lifecycle events, native app lifecycle.
Frames native embedding shadows and a bunch more.
And of course, going forward, you have different police candidates
and then GA sometime in November.
So this is really, really cool.
You want to definitely check this out and there's documentation.
So again, to create the applications, you'll need to go.
But also want to point out that some really nice notes here.
So if you want to do the blazer, Don Moe blazer, you'll want to
actually check the asp.net web here.
There's a bunch of other workloads that you'll want to check to make
sure that you're up and running fully.
Um, but I do want to point out that you can walk through building your
first app, how you can migrate your applications from Xamarin forms.
And of course, what other components you'll need to get up and.
And of course how to use a Mallee Jack.
So definitely check out all that good stuff.
And I really like here, there's a bunch of great documentation on
customizing and here how to customize it mappers last week on my live
stream, which we'll post very soon as the channel is probably out already.
When you're watching this, I actually walk through how you can contribute to
Donna and Maui if you're looking to do so.
Anyways, I just wanted to give you.
All a quick run-through of how to create new projects.
What's new in the templates specifically in the project types with dinette,
Maui, essential is being bundled right in, which is really, really awesome.
Being able to tap into that native capabilities with just a single line
of code, no matter what you want to do.
And of course, what the team is up to in the future as more previews
and release candidates, come out.
Now, if you liked this video, give it a thumbs up.
Smash.
Do all those good things that really helps my channel and helps
us video, get it out to more people.
If you want more information and me to go deeper on this, or also if you want
me to boot up my Mac and get all the things working over there, I totally can.
I will say the reason I didn't go ahead and do that for this
release is that the team has a dependency to build on X code 13.
I think it is.
I think that's what they said in the blog.
Looking, looking, looking, pop up, up above.
X code 13 beta one.
Yeah.
So I didn't have time to set that all up.
Cause it takes several hours in salt, X code, as many of you probably know, but
if you want me to, I'll totally do it.
Um, but I like to just kind of run through here on my local machine.
Uh, and if you want anything else about Donna Maui related, let me know.
I'm also putting on new videos right here on the channel.
Jam on that subscribe button and ding that notification bell, because I'm
putting on new videos all the time.
And many of my videos now are not only for Xamarin forms, but also
done in Maui when the things are the same and the coding the same way.
I kind of marked that in the title.
So definitely be on the lookout for that.
Well, I think all of you for all the great comments and feedback that
you've given me on this channel and all my videos and thanks for it.