maui icon indicating copy to clipboard operation
maui copied to clipboard

Add .NET MAUI Blazor Hybrid + Web App solution template

Open Eilon opened this issue 1 year ago • 0 comments

Description of Change

This adds a new template to dotnet new and in Visual Studio that creates a solution with .NET MAUI Blazor Hybrid app with a Blazor Web app, which share common code in a Razor Class Library project.

Here's what you'll see from the command line:

image

And from VS you get this template:

image

With these options:

image

And here's what the rough layout of files looks like:

image

And when you run the apps they look the same (because all the UI components are shared) - and include additional sample code for an IFormFactor interface to show how to write platform-specific services:

image

Most of the options from the Blazor Web project template are also available in this new template.

Issues Fixed

Fixes #1069

(This is a replacement for PR #21867)

Eilon avatar May 06 '24 20:05 Eilon