Categories
.NET MAUI Extensions Templates Visual Studio Xamarin

.NET MAUI – Templates for Visual Studio 2022

With .NET 6 Preview 6 released on Jul 14, 2021, and now Preview 7 released on Aug 10, 2021, .NET MAUI progressed a lot with Workloads, Gestures, Clipping, Alerts, New Layouts, and mainly first-class support for Visual Studio 2022 (with Preview 3.x). But, there is a catch here. NO item templates for Visual Studio for now :-(.

Update: This extension is now updated to support .NET MAUI Preview 10 with VS2022 Preview (17.1.0 Preview 1.0) IDE and .NET MAUI (Preview) Mobile Development workload installed. This can be downloaded and installed from the same link mentioned in this article.

Update: A more advanced All-in-One .NET MAUI App project template is now available to install. Check out this article for more details.

Categories
.NET MAUI Xamarin

.NET MAUI – Project Structure and Application Flow

In the earlier post, we’ve seen about the SDK-style project file details, but it is also vital to look at the unified project structure to get into the application flow for each platform.

In this Single project structure, both platform-specific and platform-independent code will live in the same space.

Categories
.NET MAUI Xamarin

.NET MAUI – SDK-style Project File

In the earlier posts, we have seen how to create a new MAUI project from the template and then went on to build and debug the application in VS Code and automated the process to an extent with Comet for. NET Mobile.

Now in this post, we’re going to see the inner details of a .NET MAUI SDK-style project file as it is designed to target multiple platforms from a Single project.

This is different from Xamarin.Forms, as Forms creates an individual head project for each of the platforms it targets and a .NET Standard project for writing platform-independent Forms code (which gets added as a reference to those head projects).

Categories
.NET MAUI VS Code Xamarin

.NET MAUI – Develop with Comet in Visual Studio Code

This article is kind of an update to the previous one to describe the use of Comet for .NET Mobile by James Clancey to debug the .NET MAUI project and it’s available as an extension to VS Code.

2024 Update: There’s an officially supported .NET MAUI extension for VS Code. To install and work with this, please consult this article.

This cute little extension automates the build and debug into a simple action rather than manually configuring it as described in the previous post.

To get started, launch VS Code, open Extensions (Shortcut: Ctrl+Shift+X), look for the Comet for .NET Mobile, and get it installed.

Categories
.NET MAUI Desktop Mobile VS Code Xamarin

.NET MAUI – Develop with Visual Studio Code

Update: Completed sample of this article is now available on GitHub, and can be accessed from .NET MAUI Samples

2024 Update: There’s an officially supported .NET MAUI extension for VS Code. To install and work with this, please consult this article.

In the previous post, described how we can set up a Dev environment for playing with .NET MAUI and the steps to create a new project from the template provided and then went on to build and run using .NET CLI.

And in this post, am going to detail how we can achieve build, run, attach the debugger, and add breakpoints within Visual Studio Code. Will continue with the same TestApp project that we created earlier.

Categories
.NET MAUI Desktop Getting Started Mobile Xamarin

.NET MAUI – Project Template

You might wonder whether you’ve read the title of this post correctly, yes, of course, .NET MAUI project template is now available from the .NET CLI toolset and VS IDE.

Both VS2019 and VS2022 for Windows are now provisioned with project templates for both Maui as well as Maui Blazor app models. Use VS2019 16.11 Preview 4.0 or VS2022 Preview 3.0 or later version to build the project.

And, users on macOS can continue to use VS Code for time being as Microsoft is doing a complete revamp of Visual Studio for Mac. Develop MAUI app in VS Code with Comet for .NET Mobile extension. For further details, read this article.

Update: A far more advanced all-in-one .NET MAUI App project template is now available to install. Check out this article for more details.

Have published a VS extension to install the item templates that target .NET MAUI Preview. To know more about it, take a look at this .NET MAUI – Templates for Visual Studio article.

Categories
General

About Me

I’m an independent software developer with over 12 years of industry experience in the design and development of .NET applications.

In this over a decade-long career, have worked with multiple solutions cutting across Web, Mobile, Desktop, APIs, Windows Services, SQL Server to name a few.

I always love to explore new things, especially those that are set to disrupt the status quo.