VijayAnand.MauiTemplates
1.1.2
Prefix Reserved
See the version list below for details.
dotnet new install VijayAnand.MauiTemplates::1.1.2
Project and Item Templates for developing .NET MAUI App that runs on iOS, Android, macOS, and Windows
All-in-One project template for .NET MAUI App and is named as mauiapp
.NET MAUI Class Library project template and is named as mauiclasslib
Item templates for ContentPage, ContentView, and ShellPage in XAML, named as maui-page
, maui-view
, and maui-shell
respectively.
Item template for ContentPage and ContentView in C#, named as maui-page-cs
and maui-view-cs
respectively.
All of these templates currently target .NET MAUI Preview 13
.
To install the template NuGet package, use the below .NET CLI command:
dotnet new --install VijayAnand.MauiTemplates
If you've already installed this package, then it can be updated to the latest version with the below command:
dotnet new --update-check
dotnet new --update-apply
Use the below .NET CLI command to create the all-in-one .NET MAUI App, library project, pages, and views out these templates:
Note: Parameter values are case-insensitive.
Both project templates take the below optional parameters to include the official CommunityToolkit NuGet packages:
-it
|--include-toolkit
- Accepted Values areYes
orNo
(default isNo
)-im
|--include-markup
- Accepted Values areYes
orNo
(default isNo
)
All-in-One .NET MAUI App project takes one additional parameter to define the application design pattern:
-dp
|--design-pattern
Can take any one of the following values, with default value set to Plain
:
Parameter Value | Description |
---|---|
Plain | App configured to work with a single, initial screen. |
Hierarchical | App configured to work in a hierarchical pattern using NavigationPage. |
Tab | App configured to work in a Tabbed fashion using TabbedPage. |
Shell | App configured to work with Routes using Shell page. |
Hybrid | App configured to work in a Hybrid fashion using BlazorWebView. |
For more details: run this command in the terminal (use -h
to save some keystrokes):
dotnet new mauiapp --help
dotnet new mauiclasslib --help
.NET MAUI App:
dotnet new mauiapp -n MyApp -dp Hybrid
Option to include NuGet packages:
dotnet new mauiapp -n MyApp -dp Shell -it yes -im yes
.NET MAUI Class Library:
dotnet new mauiclasslib -n MyApp.Core
Option to include NuGet packages:
dotnet new mauiclasslib -n MyApp.Core -it yes -im yes
Pages:
dotnet new maui-page -n LoginPage -na MyApp.Views
dotnet new maui-page-cs -n HomePage -na MyApp.Views
Views:
dotnet new maui-view -n CardView -na MyApp.Views
dotnet new maui-view-cs -n OrderView -na MyApp.Views
Shell:
dotnet new maui-shell -n AppShell -na MyApp
Here -n
denotes the name of the project/page/view that is to be created (for pages/views, don't need to suffix it with .xaml, it will be added automatically) (Can also be specified as --name
).
Note: If name
parameter input is not provided, the .NET CLI template engine will take the current folder name in the context as its name (default behavior).
And -na
denotes the namespace under which the file is to be created (Can also be specified as --namespace
).
-
.NETStandard 2.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
6.0.0 | 57 | 11/19/2024 |
5.15.0 | 107 | 10/23/2024 |
5.14.0 | 72 | 10/10/2024 |
5.13.0 | 117 | 9/13/2024 |
5.12.1 | 106 | 8/15/2024 |
5.12.0 | 64 | 8/14/2024 |
5.11.0 | 58 | 8/5/2024 |
5.10.1 | 47 | 8/1/2024 |
5.10.0 | 66 | 7/26/2024 |
5.9.0 | 89 | 7/9/2024 |
5.8.0 | 63 | 7/5/2024 |
5.7.0 | 67 | 6/28/2024 |
5.6.2 | 80 | 6/13/2024 |
5.6.1 | 52 | 6/12/2024 |
5.6.0 | 53 | 6/11/2024 |
5.5.0 | 68 | 6/6/2024 |
5.4.0 | 235 | 5/22/2024 |
5.3.0 | 254 | 5/14/2024 |
5.2.1 | 132 | 4/17/2024 |
5.2.0 | 81 | 4/10/2024 |
5.1.0 | 401 | 3/12/2024 |
5.0.1 | 731 | 2/18/2024 |
5.0.0 | 187 | 2/14/2024 |
4.9.0 | 218 | 2/8/2024 |
4.8.1 | 607 | 1/18/2024 |
4.8.0 | 152 | 1/15/2024 |
4.7.0 | 371 | 1/4/2024 |
4.6.0 | 1,061 | 11/30/2023 |
4.5.0 | 234 | 11/24/2023 |
4.4.0 | 363 | 11/14/2023 |
4.4.0-preview.5 | 182 | 11/10/2023 |
4.4.0-preview.4 | 101 | 11/9/2023 |
4.4.0-preview.3 | 307 | 10/30/2023 |
4.4.0-preview.2 | 376 | 10/18/2023 |
4.4.0-preview.1 | 105 | 10/18/2023 |
4.3.0 | 287 | 10/13/2023 |
4.2.2 | 250 | 10/7/2023 |
4.2.1 | 180 | 10/4/2023 |
4.2.0 | 118 | 10/4/2023 |
4.1.1 | 144 | 9/26/2023 |
4.1.0 | 171 | 9/13/2023 |
4.0.1 | 170 | 8/27/2023 |
4.0.0 | 139 | 8/17/2023 |
3.6.0 | 144 | 8/10/2023 |
3.5.0 | 179 | 7/14/2023 |
3.4.1 | 191 | 6/14/2023 |
3.4.0 | 121 | 6/13/2023 |
3.3.2 | 170 | 5/18/2023 |
3.3.1 | 120 | 5/17/2023 |
3.3.0 | 124 | 5/16/2023 |
3.2.4 | 195 | 4/20/2023 |
3.2.3 | 143 | 4/17/2023 |
3.2.2 | 133 | 4/14/2023 |
3.2.1 | 134 | 4/11/2023 |
3.2.0 | 135 | 4/5/2023 |
3.2.0-preview.6 | 119 | 4/3/2023 |
3.2.0-preview.5 | 117 | 4/2/2023 |
3.2.0-preview.4 | 116 | 3/30/2023 |
3.2.0-preview.3 | 122 | 3/27/2023 |
3.2.0-preview.2 | 121 | 3/25/2023 |
3.2.0-preview.1 | 116 | 3/24/2023 |
3.1.0 | 179 | 3/23/2023 |
3.1.0-preview.9 | 115 | 3/20/2023 |
3.1.0-preview.8 | 122 | 3/18/2023 |
3.1.0-preview.7 | 121 | 3/15/2023 |
3.1.0-preview.6 | 116 | 3/14/2023 |
3.1.0-preview.5 | 118 | 3/11/2023 |
3.1.0-preview.4 | 113 | 3/9/2023 |
3.1.0-preview.3 | 121 | 3/7/2023 |
3.1.0-preview.2 | 117 | 3/4/2023 |
3.1.0-preview.1 | 118 | 3/3/2023 |
3.0.2 | 201 | 3/6/2023 |
3.0.1 | 142 | 3/3/2023 |
3.0.0 | 165 | 2/22/2023 |
2.4.1 | 150 | 2/17/2023 |
2.4.0 | 163 | 2/6/2023 |
2.3.1 | 185 | 1/27/2023 |
2.3.0 | 157 | 1/25/2023 |
2.2.0 | 189 | 12/19/2022 |
2.1.3 | 1,168 | 11/23/2022 |
2.1.2 | 368 | 11/18/2022 |
2.1.1 | 338 | 11/10/2022 |
2.1.0 | 333 | 11/8/2022 |
2.0.3 | 399 | 10/26/2022 |
2.0.2 | 398 | 10/25/2022 |
2.0.1 | 440 | 10/21/2022 |
2.0.0 | 465 | 10/4/2022 |
1.7.3 | 583 | 8/5/2022 |
1.7.2 | 616 | 6/17/2022 |
1.7.1 | 480 | 6/7/2022 |
1.7.0 | 518 | 5/24/2022 |
1.6.0 | 464 | 5/23/2022 |
1.5.0 | 521 | 5/12/2022 |
1.4.1 | 564 | 4/28/2022 |
1.4.0 | 457 | 4/27/2022 |
1.3.1 | 514 | 4/19/2022 |
1.3.0 | 505 | 4/14/2022 |
1.2.0 | 522 | 3/29/2022 |
1.1.3 | 584 | 2/19/2022 |
1.1.2 | 456 | 2/18/2022 |
1.1.1 | 467 | 2/16/2022 |
1.1.0 | 434 | 2/16/2022 |
1.0.8 | 456 | 2/14/2022 |
1.0.7 | 446 | 2/14/2022 |
1.0.6 | 468 | 2/1/2022 |
1.0.5 | 448 | 1/31/2022 |
1.0.4 | 395 | 11/9/2021 |
1.0.3 | 406 | 10/15/2021 |
1.0.2 | 1,003 | 8/16/2021 |
1.0.1 | 435 | 8/13/2021 |
1.0.0 | 373 | 8/12/2021 |
What's new in ver. 1.1.2:
-------------------------
When handling the Save button click event in the 'New Event' page, the app flow is modified such that it returns to the calling page after dismissing the Alert dialog.
Added .NET MAUI-themed branding icon to templates in Visual Studio IDE.
Icon Courtesy: Braja Omar Justico's community contribution.
Other than that, these are the features of the v1.1 series:
Introduced an all-in-one .NET MAUI App project template with the ability to choose the design pattern during project creation.
Introduced the ability to include CommunityToolkit.Maui and CommunityToolkit.Maui.Markup NuGet package reference while creating a new .NET MAUI App.
These options are controlled by the below parameters:
-dp | --design-pattern
Can take any one of the following values, with default option set to Plain:
Plain - App configured to work with a single, initial screen.
Hierarchical - App configured to work in a hierarchical pattern using NavigationPage.
Tab - App configured to work in a Tabbed fashion using TabbedPage.
Shell - App configured to work with Routes using Shell page.
Hybrid - App configured to work in a Hybrid fashion using BlazorWebView.
-it | --include-toolkit
Can be any of the following values: Yes | No
-it | --include-markup
Can be any of the following values: Yes | No
For more details: run this command in the terminal:
dotnet new mauiapp --help
Known Limitations:
------------------
While using the .NET CLI Templates within Visual Studio IDE, the last used values of the project options like the above ones are retained in the consecutive iteration rather than defaulting to their original values as defined by the developer.
Have already reported this issue to the VS product team and is actively being followed up, until this is clarified / fixed, requesting the users to make of this feature with bit of caution.