Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Creating first .Net MAUI project

I tried to create Maui project in windows using visual studio developer command prompt using
Command :
dotnet new maui

But Its not creating Maui project,Getting Error message No templates found matching : maui
I installed the .Net 5 and visual studio 2019 in my machine.

like image 449
Pradeep Kumar Avatar asked Dec 02 '20 10:12

Pradeep Kumar


People also ask

Is .NET MAUI ready for production?

Today, we're excited to announce that . NET Multi-platform App UI has graduated from preview and is available in the release edition of Visual Studio 2022 on Windows. Now, you have full access to productivity features that will help you build cross-platform native client apps with .

Is .NET MAUI good?

NET MAUI good? Yes. Because . NET MAUI is built on the already reliable Xamarin Forms product, it had already proven itself a capable alternative to other native-UI cross-platform solutions before it was even launched.

How do I create a Maui project?

In the Create a new project window, select MAUI in the Project type drop-down, select the .NET MAUI App template, and click the Next button: In the Configure your new project window, name your project, choose a suitable location for it, and click the Create button:

How do I create an Maui application in Visual Studio 2022?

Launch Visual Studio 2022, and in the start window click Create a new project to create a new project: In the Create a new project window, select MAUI in the Project type drop-down, select the .NET MAUI App template, and click the Next button:

How do I build my first Maui app?

Build your first .NET MAUI app 1 Prerequisites. An environment that has been configured for .NET MAUI development, using the maui-check tool. ... 2 Get started with Visual Studio 2019. In the Visual Studio toolbar, press the Start button to launch the app in your chosen Android emulator. 3 Build and debug iOS apps. ...

What is net Maui?

What is .NET MAUI? .NET Multi-platform App UI (.NET MAUI) is a cross-platform framework for creating native mobile and desktop apps with C# and XAML. The documentation for .NET Multi-platform App UI (.NET MAUI) is under construction.


2 Answers

There is a known issue, please install the template manually:

dotnet new -i Microsoft.Maui.Templates
like image 59
Alexey Strakh Avatar answered Sep 20 '22 17:09

Alexey Strakh


It's now recommended to create .NET Maui apps with Visual Studio according to their current documentation.

Older suggestion:

I'd recommend using the check tool provided. This will install the templates for you and make sure everything else is present to develop using Maui.

Install: dotnet tool install -g redth.net.maui.check

Run: maui-check --dev

This will check for:

OpenJdk / AndroidSDK
.NET 6 Preview SDK
.NET MAUI / iOS / Android workloads and packs
.NET MAUI Templates
Workload Resolver .sentinel files for dotnet and Visual Studio Windows/Mac
Currently does not install workloads required for WinUI3
like image 32
Jimenemex Avatar answered Sep 19 '22 17:09

Jimenemex