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

What’s New in the All-in-One .NET MAUI Templates Pack v9.0 – Hello Avalonia

In line with the annual release cadence, the first public preview of .NET 11, an STS version, was released last month.

The second preview was released this month. It was then followed by the much-awaited preview release of the Avalonia backend for .NET MAUI, which is now available.

Simply put, .NET MAUI renders native controls from the underlying platform. Avalonia uses Skia to draw its controls across different platforms. This allows Avalonia to offer a similar look and feel everywhere.

With Avalonia, you can use the same .NET MAUI codebase to target even more platforms, including Linux and WebAssembly.

Basically, Avalonia offers a set of .NET MAUI Handlers designed to render Skia (Drawn) controls for .NET MAUI views.

Avalonia has announced plans to align its GA with the release of .NET MAUI 11 stable later this year.

Excited to share that preview support for both is now built into the All-in-One templates pack.

As the name suggests, it has a slew of features under the hood to work with .NET MAUI. To know more about all the features of this template pack, refer to the series of articles listed here.

Categories
.NET .NET 10 C# CLI Code Desktop Developer File Apps Mobile Tips Visual Studio VS Code VS2022 VS2026 Windows

Run C# Source Files Directly in .NET 10

The file app is a new feature in .NET 10 that lets you run a C# source file directly without requiring a project file, like dotnet App.cs. While the build system is tightly integrated with the project file, it operates virtually within the file-based app execution.

Project components like SDK, properties, references, and packages are now defined directly within the C# source file. This is done with the help of C# Ignored Directives. This ensures seamless integration with the virtual project file.

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

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:

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

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

To effectively support the RC release (with Go-Live support) 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 is the third set of enhancements for .NET MAUI 10. Check out the v7.9 and v7.10 articles 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:

Categories
.NET .NET 10 .NET MAUI .NET MAUI 10 Android ASP.NET Core Aspire Blazor C# CLI Code Deep Dive Desktop Developer DevOps General Getting Started Hybrid Integration iOS macOS Mobile Visual Studio VS Code Web Windows Xamarin Xamarin.Forms

Integrating .NET MAUI with Aspire: A Comprehensive Guide

Aspire is now the talk of the town. You can build and orchestrate all the dependencies from one single place. In fact, it’s stack streamlined. Learn more about Aspire here.

This article discusses how to integrate .NET MAUI, Microsoft’s cross-platform UI framework, with Aspire.

Aspire supports .NET by default, but since .NET MAUI is designed for multi-targeting from a single project, it presents a minor issue. I’ll offer a workaround until it’s officially supported (coming soon).

For this, I’m using .NET 10 File-based Apps for simplicity. Aspire v9.5 supports this new feature. Consult this article to know more about C# File-apps.

Categories
.NET .NET 10 .NET 8 .NET 9 .NET MAUI Android Blazor C# Desktop Developer Getting Started Hybrid iOS macOS Mobile What's New Windows WinUI 3 Xamarin Xamarin.Forms XAML

What’s New in .NET MAUI 10 – A Comprehensive Overview

.NET 10, the next major version of .NET, will follow the annual release cadence. It is a Long-Term Support (LTS) release, set to launch during .NET Conf, an annual virtual developer event, scheduled from Nov 11-13, 2025. Support will last for 3 years from release.

This release is packed with a broad set of features. The theme is enhanced security, performance, diagnostics, and developer productivity.

Consult these articles on .NET 10 and C# 14 features:

The STS support policy has recently changed: from .NET 9 onwards, support will last for 2 years instead of 18 months. Support for both .NET 8 LTS and .NET 9 STS will continue until Nov 2026. Full details here.

It’s to be noted that .NET MAUI does not have concept of STS/LTS. Each major version is supported for 18 months after its release, so support for .NET MAUI 9 will be available only till mid-May, 2026. The official support policy is here.

To know more about the key features of .NET MAUI 9, consult this overview article.

Key Features:

In this article, we’ll explore the high-level features of .NET MAUI 10.

Categories
.NET C# CLI Desktop Developer General Getting Started Linux Tools Web What's New Windows

How to Install and Use Microsoft Edit for Simple CLI Text Edits

Want to quickly update a configuration file or edit a solution or project file? Then Microsoft Edit is the ultimate choice. It is a lightweight and easy-to-use text editor from the command line. You can do all this without ever having to switch context.

How to Install:

Plans are to add it to Windows OS soon, making it useful in places where third-party software can’t be installed.

For now, the easiest option to install this editor is using winget:

Categories
.NET .NET 10 ASP.NET Core Aspire Automation Azure Blazor C# CLI Code Desktop Developer Getting Started Linux macOS Mobile Visual Studio VS Code Web What's New Windows

Using C# Ignored Directives: A Guide for Programmers

C# – Preprocessor Directives are highly useful for writing code that can be compiled conditionally, depending on factors like the target framework, target platform, or build configuration.

For example:

#if NET9_0_OR_GREATER
// The code within this block will execute only on .NET 9 or higher
#endif

#if ANDROID
// The code within this block will execute only on the Android OS
#endif

#if DEBUG
// The code within this block will execute only in Debug mode
#endif

C# – Ignored Directives have a similar syntax but are ignored by the compiler because they are for tooling.

The real purpose of this feature is to execute a C# source file directly from the CLI. It doesn’t need a project file. Now, even the plain console app requires a project file, despite the much-simplified top-level statements feature.

Categories
.NET .NET 8 .NET 9 .NET Conf .NET MAUI Android Blazor C# Desktop Developer Events General Hybrid iOS macOS Mobile Visual Studio VS Code Web Windows Xamarin Xamarin.Forms

Join .NET Conf 2024 Online: Explore .NET 9 Features

November is set to be an exceptionally significant month for .NET developers globally, as a new version of .NET will be officially released during its annual event, .NET Conf. Similar to previous years, this year’s event will also be conducted virtually, allowing participation online. The highly anticipated .NET 9 is scheduled for release during this conference, which will take place over three days from Tue, Nov 12, 2024, to Thu, Nov 14, 2024. Please mark your calendars accordingly.

.NET Conf 2024 - Annual Virtual Developer Event - Release of .NET 9
.NET Conf 2024 – Annual Virtual Developer Event – Release of .NET 9

Quite like .NET 7, .NET 9 is also a short-term support (STS) release, which will be supported for 18 months till mid-May 2026. Even-numbered releases are LTS whereas odd-numbered are STS. More details on the release lifecycle are here. The support for .NET 6 (the previous LTS release) ends (more details here), with .NET 7 already out of support, and .NET 8, the current LTS release, has another 2 years of support till early Nov 2026.

.NET Release Schedule
.NET Release Schedule

Due to the underlying external dependencies, the support policy of .NET MAUI differs significantly from .NET, each major release will be supported only for 18 months. So, if you’re using .NET MAUI 8, support will cease by mid-May 2025 (in another 6 months). Hence, it’s necessary to plan for your app migration to .NET MAUI 9. An article has already been published detailing the comprehensive features of .NET MAUI 9.

Categories
.NET .NET 8 .NET 9 .NET MAUI Android Blazor C# Desktop Developer Events F# General Hybrid iOS macOS Mobile Standup Visual Studio VS Code Web What's New Windows Xamarin Xamarin.Forms

Join the October .NET MAUI Community Standup

This October, join David and Rachel as they discuss the latest developments in the realm of .NET MAUI during the monthly community standup.

Remember to join live on Thu, Oct 3 at 17:00 UTCClick the link to access the timing in your local or preferred time zone. Note, that it’s back to its usual schedule.

Update: The community links for this month’s standup will be updated here.

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