.NET CLI is a terminal-based way to create and run .NET MAUI applications. It offers a lightweight alternative to Visual Studio, with discoverable commands, templates, switches, and interactive help. section 2.1 section 2.1.2
Use the CLI's .NET MAUI templates to start different kinds of projects:
- maui creates a standard .NET MAUI application. section 2.1.2
- maui-blazor creates a .NET MAUI application whose user interface uses Blazor. section 2.1.2
- mauilib creates a shared .NET MAUI class library, while maui-page-xaml and maui-page-csharp create pages with different UI definitions. section 2.1.2
Create and run Aloha, World!
Create and enter a folder, run dotnet new blankmaui, and inspect the generated solution files. To run the application for a target platform, use dotnet build -t:Run -f:net7.0-[target platform], such as dotnet build -t:Run -f:net7.0-ios. The build command locates a project or solution, builds it, and then runs it for the selected framework. section 2.1.3 section 2.2.3
mkdir AlohaWorld cd AlohaWorld dotnet new blankmaui
Use these terminal commands to create the initial project directory and apply the blank .NET MAUI template. section 2.1

