.NET Multi-platform App UI (MAUI) Preview 10 is now available atop the stable release of .NET 6, and you can acquire it today in the preview channel of Visual Studio 2022. This new release includes the merging of the remaining Windows App SDK dependencies, and ongoing progress to complete the remaining controls and control features.
Installing .NET MAUI
Now to install .NET MAUI, you will want to make sure you are using the preview version of Visual Studio 2022 (17.1) which ships today alongside the stable 17.0 release. When installing, all you need is the “Mobile development with .NET” workload which by default provides the “.NET MAUI (Preview)” dependencies. In a future release, .NET MAUI will be promoted to its own top-level workload.
That’s it! No more additional extensions are needed, and you’re ready to begin developing with .NET MAUI.
Update on controls and features
New in this release are handler implementations of CollectionView
and IndicatorView
. Other controls have also seen properties implement for VerticalTextAlignment
, TextTransform
, and more. For a complete list of the changes and improvements, see the release notes.
CollectionView
covers most of the same virtualized list based scenarios as ListView
and adds support for other layouts such as horizontal and grid. Here is a vertical scrolling grid spanning two columns:
<CollectionView ItemsSource="{Binding Monkeys}"
ItemsLayout="VerticalGrid, 2">
<CollectionView.ItemTemplate>
<DataTemplate>
<Grid Padding="10" RowDefinitions="60" ColumnDefinitions="70,*">
<Image Grid.RowSpan="2"
Source="{Binding ImageUrl}"
Aspect="AspectFill"
HeightRequest="60"
WidthRequest="60">
<Image.Clip>
<RectangleGeometry Rect="0,0,160,160"/>
</Image.Clip>
</Image>
<Label Grid.Column="1"
Text="{Binding Name}"
FontAttributes="Bold"
TextColor="White"
VerticalOptions="Start"
LineBreakMode="TailTruncation" />
<Label Grid.Column="1"
Text="{Binding Location}"
LineBreakMode="TailTruncation"
FontAttributes="Italic"
TextColor="White"
VerticalOptions="End" />
</Grid>
</DataTemplate>
</CollectionView.ItemTemplate>
</CollectionView>
For more information on how to use these controls, check out our documentation:
Get Started Today
First thing’s first, install Visual Studio 2022 Preview (17.1 Preview 1) and confirm .NET MAUI (preview) is checked under the “Mobile Development with .NET workload”. Ready? Open Visual Studio 2022 and create a new project. Search for and select .NET MAUI.
Preview 10 release notes are on GitHub and we have captured the top changes in a migration guide in the wiki. For additional information about getting started with .NET MAUI, refer to our documentation.
Feedback Welcome
Visual Studio 2022 previews are incrementally enabling new features for .NET MAUI. As you encounter any issues with debugging, deploying, and editor-related experiences, please use the Help > Send Feedback menu to report your experiences.
Please let us know about your experiences using .NET MAUI to create new applications by engaging with us on GitHub at dotnet/maui.
For a look at what is coming in future releases, visit our product roadmap, and for a status of feature completeness visit our status wiki.
Hi. I am able to build and run using Visual Studio successfully.
Now I would like to build using CLI (dotnet). When I try
dotnet build
in the root folder of the project, it builds all projects except the windows one. Can you please tell me what command should I use in CLI to build the windows project?Not able to find .Net MAUI in visual studio 22. I have tried finding it in VS Installer in mobile development but there was only option for xamarin. How should I get my hands on MAUI?
Thanks for the latest release.
I’m wondering something, when will it be officially released? Visual Studio version without a preview version.
is there any cooperation between you and the devs of Visual studio for mac for closer integration of maui to vs for mac?
Hello,
I think I found a bug on the Databinding on MAUI Preview 10.
If you have a Entry inside of a Border the Text=”{Binding Temperature}” does not trigger the Get on the viewmodel.
Thanks
Lester Moreno
Few days ago i downloaded 17.1 preview. I created sample program and build and run . It was ok.
Now whole visual studio broke. I removed visual studio 4 time and restarted pc and installed. Nothing work now.
Probably they are making changes and messed up everything. We cant test broken codebase.
Instead of visual studio updating itself which i dont think working , they should provide scripts for update. I googling and tried everything ....
When will the MAUI app shown in the .net conf be open sourced? Thanks!
I am trying to learn .net and stuff because i wanted to create Simple desktop app. C++ and WPF were tedious. I installed release 17.1 preview visual studio and ran blazor maui as debug and release version. But that using visual studio menus. How do i run from command line blazor maui? I am googling forever i cant find a run command. I just clicked blazormauiApp.exe , nothing happens. It seems like exe is doing...
I had installed VS2022 (17.1) but when I created a new project, It didn’t a single project and I couldn’t add a new page because it a xamarin page
Anyone else having breakpoint issues with iOS? This is android but Im getting the same on iOS: https://github.com/dotnet/maui/issues/2699
Breakpoints will break but point to external code. Debugging Windows works though.