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.
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 .
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.
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:
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:
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? .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.
There is a known issue, please install the template manually:
dotnet new -i Microsoft.Maui.Templates
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With