Announcing .NET MAUI Preview 10

David Ortinau

.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.

Visual Studio installation with Mobile development with .NET checked

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:

grid of monkeys displayed by a CollectionView control

<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.

37 comments

Discussion is closed. Login to edit/delete existing comments.

  • P Babineau 0

    Very happy to see how far this has come!

    We are looking to port WPF apps to Maui but I am having trouble finding guidance on how our integration to USB devices over Windows Serial Ports could be best migrated to cross platform. Could you point me to someone who could help me understand this better? I’m having trouble piecing it together.

    • David OrtinauMicrosoft employee 0

      Unless you find a cross-platform library that provides and abstraction for USB devices, I think a platform specific implementation is your best option. So taking your existing code for this from the WPF app (assuming it’s Windows OS code only and not specific to WPF) you can put those classes in your .NET MAUI Platform\Windows folder and then with an Interface expose that to your xplat code.

      Look at how we do the TrayService in the WeatherTwentyOne application here: https://github.com/davidortinau/WeatherTwentyOne

  • John Hair 0

    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.

  • Huy Dang 0

    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

  • Jupiter rules 0

    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 nothing. It may need to run by something else inside the release directory as it need all the dll to load. Let me know. THANKS VERY MUCH

    Once i am able to run the sample , i get to work on building datagrid ui and toolbars.

    I do also want to know how do i interact with local file database sqlite to store user custom settings.

    Also how do i package it to install as windows desktop app? Does it have to uploaded to Microsoft store to used by clients? Cal users download it as zip file and into directory and run?

    Try to publish into folder as single self contained file as windows deployment

    I got this error

    11/15/2021 7:27:34 PM
    System.AggregateException: One or more errors occurred. —> Microsoft.WebTools.Shared.Exceptions.WebToolsException: Publish has encountered an error. We were unable to determine the cause of the error. Check the output log for more details.
    — End of inner exception stack trace —
    —> (Inner Exception #0) Microsoft.WebTools.Shared.Exceptions.WebToolsException: Publish has encountered an error. We were unable to determine the cause of the error. Check the output log for more details. <—

    Microsoft.WebTools.Shared.Exceptions.WebToolsException: Publish has encountered an error. We were unable to determine the cause of the error. Check the output log for more details.

    ===========================
    error in visual studio when i publish

    Build started…
    1>—— Build started: Project: BlazorMauiApp2, Configuration: Release Any CPU ——
    1>BlazorMauiApp2 -> C:\Dashboard\Workspace\microsoft\windowsforms\BlazorMauiApp2\bin\Release\net6.0-windows10.0.19041\win-x64\BlazorMauiApp2.dll
    2>—— Publish started: Project: BlazorMauiApp2, Configuration: Release Any CPU ——
    2>Determining projects to restore…
    2>The RuntimeIdentifier ‘win-x64’ is invalid.
    ========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
    ========== Publish: 0 succeeded, 1 failed, 0 skipped ==========

  • Enrique Morell 0

    When will the MAUI app shown in the .net conf be open sourced? Thanks!

  • Jupiter rules 0

    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 . None work.

    Severity Code Description Project File Line Suppression State
    Warning NU1603 Microsoft.Maui.Extensions 6.0.101-preview.9.1805 depends on Microsoft.Extensions.Logging (>= 6.0.0-rc.2.21470.23) but Microsoft.Extensions.Logging 6.0.0-rc.2.21470.23 was not found. An approximate best match of Microsoft.Extensions.Logging 6.0.0-rc.2.21480.5 was resolved. MauiApp3 C:\Dashboard\Workspace\microsoft\windowsforms\MauiApp3\MauiApp3\MauiApp3.csproj 1
    Error CS1705 Assembly ‘Microsoft.Maui’ with identity ‘Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null’ uses ‘Java.Interop, Version=0.1.2.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065’ which has a higher version than referenced assembly ‘Java.Interop’ with identity ‘Java.Interop, Version=0.1.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065’ MauiApp3 (net6.0-ios) C:\Dashboard\Workspace\microsoft\windowsforms\MauiApp3\MauiApp3\CSC 1 N/A
    Warning NU1603 Microsoft.Maui.Extensions 6.0.101-preview.9.1805 depends on Microsoft.Extensions.Configuration (>= 6.0.0-rc.2.21470.23) but Microsoft.Extensions.Configuration 6.0.0-rc.2.21470.23 was not found. An approximate best match of Microsoft.Extensions.Configuration 6.0.0-rc.2.21480.5 was resolved. MauiApp3 C:\Dashboard\Workspace\microsoft\windowsforms\MauiApp3\MauiApp3\MauiApp3.csproj 1
    Warning NU1603 Microsoft.Maui.Extensions 6.0.101-preview.9.1805 depends on Microsoft.Extensions.DependencyInjection (>= 6.0.0-rc.2.21470.23) but Microsoft.Extensions.DependencyInjection 6.0.0-rc.2.21470.23 was not found. An approximate best match of Microsoft.Extensions.DependencyInjection 6.0.0-rc.2.21480.5 was resolved. MauiApp3 C:\Dashboard\Workspace\microsoft\windowsforms\MauiApp3\MauiApp3\MauiApp3.csproj 1
    Warning NU1603 Microsoft.Maui.Extensions 6.0.101-preview.9.1805 depends on Microsoft.Extensions.Hosting (>= 6.0.0-rc.2.21470.23) but Microsoft.Extensions.Hosting 6.0.0-rc.2.21470.23 was not found. An approximate best match of Microsoft.Extensions.Hosting 6.0.0-rc.2.21480.5 was resolved. MauiApp3 C:\Dashboard\Workspace\microsoft\windowsforms\MauiApp3\MauiApp3\MauiApp3.csproj 1
    Warning NU1603 Microsoft.Maui.Extensions 6.0.101-preview.9.1805 depends on Microsoft.Extensions.Hosting.Abstractions (>= 6.0.0-rc.2.21470.23) but Microsoft.Extensions.Hosting.Abstractions 6.0.0-rc.2.21470.23 was not found. An approximate best match of Microsoft.Extensions.Hosting.Abstractions 6.0.0-rc.2.21480.5 was resolved. MauiApp3 C:\Dashboard\Workspace\microsoft\windowsforms\MauiApp3\MauiApp3\MauiApp3.csproj 1

    i ran this in nuget console
    Install-Package Microsoft.Maui.Extensions -Version 6.0.101-preview.9.1805

    No change same error.

  • Lester Moreno 0

    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

  • prodbyjonny 0

    is there any cooperation between you and the devs of Visual studio for mac for closer integration of maui to vs for mac?

  • Selim Terzi 0

    Thanks for the latest release.
    I’m wondering something, when will it be officially released? Visual Studio version without a preview version.

  • Aniruddha rokade 0

    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?

Feedback usabilla icon