July 11th, 2023

Announcing .NET MAUI in .NET 8 Preview 6: Hello VS Code & VS for Mac

David Ortinau
Principal Product Manager

.NET MAUI is now available in .NET 8 Preview 6 resolving 23 high-impact issues, and introducing Native AOT for iOS. Additionally, today you can now enjoy .NET MAUI in .NET 8 using the new .NET MAUI extension for Visual Studio Code, and with the 17.6.1 release of Visual Studio for Mac.

A new .NET 7 Service Release is also available today. See the release notes for full details. We are currently focusing on .NET 8 quality which means only the most critical fixes will be released for .NET 7. Once .NET 8 ships GA, we will re-evaluate the requirements for which fixes are included in service releases.

What’s fixed and improved in .NET MAUI

Several top desktop issues have been addressed for fonts (#9104, #13239), navigation (#7698, #15488, #9938), tabs (#12386, #13239, #6929), and file picker (#11088). We also continue our journey to improve memory management and address leaks (#15062, #15303, #15831).

.NET 8 preview 6 introduces Native AOT (ahead-of-time compilation) for iOS. Using this opt-in preview feature, we are currently seeing 30-40% reduction in app sizes compared to Mono. If you’re excited about the possibility of achieving better performance and size savings when targeting iOS, check out the details in the .NET 8 preview 6 blog post.

Thank you to all 25 contributors (bots included) that helped make this release, especially 5 brand new contributors to .NET MAUI: Michael Cao, Will Davies, @MartyIX, Larry Ewing, Filip Navara, and Ryan Davis.

For a full list of fixes, check the release notes.

Introducing VS Code (Preview)

Today we have also released the .NET MAUI extension for Visual Studio Code, providing a consistent development experience across Windows, macOS, and Linux. For full details on the extension, check out Maddy Montaquila’s blog post introducing it here.

screenshot of Visual Studio Code debugging a .NET MAUI app in an Android emulator

How to update

Visual Studio 2022 on Windows now includes .NET 8 previews and the .NET MAUI preview workload. Download the latest preview version (17.7 Preview 3), select the .NET Multi-platform App UI workload, and then check the optional component “.NET MAUI (.NET 8 Preview)”.

Visual Studio installer checkbox for .NET MAUI and .NET 8 previews

If you are on macOS, you can now develop using Visual Studio for Mac after enabling the preview feature for .NET 8 in Preferences and installing .NET 8 preview 6 from the installer.

Enable .NET 8 in Visual Studio 2022 for Mac

Download the .NET 8 preview 6 installer, and then install .NET MAUI from the command line:

dotnet workload install maui

Feedback Welcome

We appreciate your feedback and contributions to .NET MAUI. You can report issues, suggest features, or submit pull requests on our GitHub repository. You can also join our Discord server or follow us on Twitter to stay in touch with the latest news and updates.

Thank you for your support and happy coding!

Author

David Ortinau
Principal Product Manager

David is a Principal Product Manager for .NET at Microsoft, focused on .NET MAUI. A .NET developer since 2002, and versed in a range of programming languages, David has developed web, environmental, and mobile experiences for a wide variety of industries. After several successes with tech startups and running his own software company, David joined Microsoft to follow his passion: crafting tools that help developers create better app experiences. When not at a computer or with his family, David ...

More about author

27 comments

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

  • William Buchanan · Edited

    Don’t do this folks. Not only does .NET 8 not work, but it also leaves you unable to open .NET 7 projects again (not that .NET 7 works much better).

  • Twileloop Bussiness

    Is there an MAUI designer available with this release? If not when?
    At least a plan is there?

    I’ve seen a huge community of devs looking for this in GitHub to try MAUI. Check https://github.com/dotnet/maui/issues/3439

  • Mario

    iOS's tvOS was described as a supported platform on an early pre-release of MAUI. It has not been supported since. Any word on this? Stability is still problematic when working on Mac. I've had updates break existing projects in unexpected ways. It's hard to beat the VS IDE+C# and all the productivity gains associated with the two. Unfortunately, as soon as Microsoft ventures into UI territory stability tends to...

    Read more
  • Joacim Wall

    Hi
    Nice to have this now for VS for mac.
    Is there any documentation on how to enable this preview feature when using azure pipeline to build and release you app.

    Thanks Joacim

  • Dave Natalie

    I am unable to build an Android app. I get the following error.

    XALNS7028

    System.IO.FileNotFoundException: Could not load assembly 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Perhaps it doesn't exist in the Mono for Android profile?

    This happens out of the box when I create a project inside of Visual Studio using the ".Net MAUI App" template. I installed the latest workload using

    I am able to build and run on Windows (I haven't tried iOS). Updating to the latest nuget...

    Read more
  • S. M. JAHANGIR

    Will there be anything like Flutter/Jetpack Compose/Kotlin Compose which enables writing UI codes using pure C# instead of XAML?

    • David OrtinauMicrosoft employee Author

      Sure, you can do that today. While Visual Studio is optimized for XAML development, you can do everything in C# if you wish, and leverage .NET hot reload for C#.

      To make the syntax nicer there are several libraries available like the .NET MAUI Community Toolkit.

      If you want to switch from MVVM to MVU, then check out MauiReactor or Uno Platform's MVUX.

      Read more
      • Pruitt, David

        Hot reload is broken and does not work. There are so many issues and so many discussion about this on Github, I’m surprised Microsoft is still telling people that you can “leverage .NET hot reload”.

        We really need a XAML designer/previewer ASAP.

  • fra brix

    Hi,
    I dont want to spoilt the party and I am very eager to try Maui Preview 6 to see if some of the nasty issues with .net 7 have gone.... however after installing it I cannot build either android or iOS, just create a blank app in either iOS or android using windows machine and visual studio latest preview.

    Android does not build - this guy blogged it here
    https://egvijayanand.in/2023/07/13/dotnet-maui-on-dotnet-8-preview-6-android-build-issue/

    iOS I get an error todo...

    Read more
  • Oguz Mazlum

    I’ve upgrade my .net maui Android application but it wont launch the application on the device anymore.

    [CompatibilityChangeReporter] Compat change id reported: 171979766; UID 10306; state: ENABLED
    [System.out] Sending WAIT chunk
    Failed to launch android application

  • Niall Ginsbourg

    Is the new .NET7 SR in the VS2022 update that was released yesterday – or did it miss the cut & we need to wait for the next one?
    Also – what is the 7.0.92 release called – is that SR7 (the github repo doesn’t have a SR number this time)?

    • David OrtinauMicrosoft employee Author

      The .NET 7 SR was included in the 17.7 preview release and will come later to 17.6. It’s SR 7.

  • McCollough, David M.

    I thought I would try the .NET 8 Preview 6 maui bits, unfortunately it doesn't seem like I can get the Maui Workloads installed.

    I'm running on Mac, using Ventura 13.4.1
    I have Visual Studio for Mac v17.6.1, build 452

    I turned on using the .NET 8 SDK if it's installed. I installed it using this link.

    Once I had it installed. From a terminal window I did a dotnet workload install maui

    However when I do a dotnet...

    Read more
    • Jonathan PeppersMicrosoft employee

      Do you need to use '-f net8.0-android' instead?

      'dotnet workload list' does currently have an issue where it only lists the top-level workloads it installed in some cases. But that shouldn't cause an issue: if you see the 'maui' workload, you have the others.

      If you still can't get things working, you might follow this guide to get to a clean state:

      https://gist.github.com/jonathanpeppers/63beb491a9185ac06710261536cc35c9

      Read more
      • McCollough, David M.

        Thanks Jonathan, that does indeed work.