Categories
.NET .NET 10 .NET 8 .NET 9 .NET MAUI .NET MAUI 10 .NET MAUI 9 Android Aspire Blazor C# CLI Desktop Developer Extensions F# General Getting Started Hybrid iOS macOS Mobile NuGet Templates Tools Visual Studio VS Code VS2022 VS2026 Web What's New What's New Windows Xamarin Xamarin.Forms XAML

What’s New in the All-in-One .NET MAUI Templates Pack v8.0

Includes support for the .NET MAUI 10 Stable channel release, the SLNX solution file format, an opt-in Source Generation feature, and a new item template for .NET 10 File Apps.

As the name suggests, it has a slew of features under the hood to work with .NET MAUI.

To effectively support the Stable channel release of .NET MAUI 10, both the CLI NuGet package and the Visual Studio extension of the All-in-One .NET MAUI Templates Pack have been updated.

This v8.0 is the key enhancement for .NET MAUI 10. Check out the articles for v7.9, v7.10, and v7.11 for the feature set.

To know more about all the features of this template pack, refer to the series of articles listed here.

And to learn about key features by MAUI version, check these articles:

How to Install:

From CLI and for users on macOS and Linux:

Here’s the command to install the CLI templates pack.

dotnet new install VijayAnand.MauiTemplates

For users on VS2022 and VS2026:

  • To install as a VSIX, download and install from the Visual Studio Marketplace
  • From within the IDE, open Manage Extensions (shortcut: Alt+X+M) from within the Visual Studio IDE. Search with the maui keyword. Make sure the Online/Browse Tab is in focus. Then look for .NET MAUI Project and Item Templates.
.NET MAUI Project and Item Templates - Visual Studio Extension.
.NET MAUI Project and Item Templates – Visual Studio Extension

What’s New:

The following delineates the key features encompassed within this v8.0 release (command samples provided below):

  • Templates updated to support .NET MAUI 10 Stable channel release.
  • The default value for the Framework parameter is now set to net10.0 (.NET 10 LTS) in all the project templates.
  • By default, the project command creates a .NET MAUI 10 project.
  • When creating a .NET MAUI 8 or 9 project, an explicit value for the Framework parameter is required.
  • By default, the solution file is created in the new SLNX format.
    • To work with the classic SLN format, override the default value or uncheck the UI control in the IDE.
  • Introduced an option to enable the .NET MAUI 10 Source Generation feature for better Debug build performance.
    • -sg | --source-gen – Default is false.
    • Check the UI control in the IDE to opt in.
    • It’s a .NET MAUI 10-only feature; opting for the earlier version will not have any impact.
  • With Aspire integration, like MauiVersion, the Aspire SDK version is managed via the Directory.Package.props file for easier management.
  • Introduced a CLI item template to support the new .NET 10 File-based Apps, which is named fileapp.
    • It requires a filename (without an extension) as its input.
    • Optionally, it accepts the parameters listed below:
      • -f | --framework – Framework parameter
        • Supported values are : net10.0, net9.0, net8.0
        • The app can target an older version, but it must be compiled with the .NET 10 SDK.
      • --sdk – .NET supported SDKs, in short notation.
        • Supported values are: Aspire, BlazorWasm, Razor, Web, Worker
      • --maui – To be used with Aspire SDK for .NET MAUI integration.
        • Default is false.
      • --preview – To use the language preview features.
        • Default is false.

CLI Commands:

.NET MAUI 10 App:

dotnet new mauiapp -o MyApp

.NET MAUI 9 App:

dotnet new mauiapp -o MyApp -f net9.0

To work with the classic SLN file format:

dotnet new mauiapp -o MyApp -slnx:false

Opt-in for .NET MAUI 10 Source Generation feature:

dotnet new mauiapp -o MyApp -sg

.NET 10 File Apps:

dotnet new fileapp -n Console
dotnet new fileapp -n Aspire --sdk Aspire --maui
dotnet new fileapp -n MinimalApp --sdk Web

Visual Studio Project Options Dialog:

Visual Studio - Project Options Dialog - Option to enable .NET MAUI 10 Source Generation feature.
Visual Studio – Project Options Dialog – Option to enable .NET MAUI 10 Source Generation feature

Help and Support:

Documentation is available here. If you have any issues or features to suggest, please raise an issue with appropriate details here. Ideas are most welcome.

If you find these extensions useful, kindly support the work by adding your review to the VS Marketplace. Please also add a Star to the GitHub repository where it’s actively maintained. Also, share the word with your team and inner circle.

Much of my time is spent on adding new features to the templates pack. If you would like to recognize the work, kindly consider sponsoring on the GitHub Sponsors page. This will help sustain the momentum. You can also support by buying me a coffee on the Buy Me a Coffee page. Thanks in advance.

Happy coding. Stay connected as we continue to learn and share the experiences from this exciting journey of being a .NET developer.

One reply on “What’s New in the All-in-One .NET MAUI Templates Pack v8.0”

Comments are closed.

Discover more from Developer Thoughts

Subscribe now to keep reading and get access to the full archive.

Continue reading