VijayAnand.FormsTemplates 1.2.0

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet new install VijayAnand.FormsTemplates::1.2.0                
This package contains a .NET Template Package you can call from the shell/command line.

CLI Project and Item Templates for developing Xamarin.Forms App that runs on iOS, Android, and Windows

Project template for Xamarin.Forms Class Library and is named as formsclasslib

Item templates for ContentPage, ContentView, ShellPage, and ResourceDictionary in XAML and named as forms-page, forms-view, forms-shell, and forms-resdict respectively.

All of these templates currently target Xamarin.Forms 5.0 Service Release 9 (ver. 5.0.0.2337).

To install the template NuGet package, use the below .NET CLI command:

dotnet new --install VijayAnand.FormsTemplates

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 project, pages, and views out these templates:

dotnet new formsclasslib -n MyApp.Core

Class library project templates take the below optional parameters to include the official CommunityToolkit NuGet packages:

  • -it | --include-toolkit - Default value is false
  • -im | --include-markup - Default value is false
dotnet new formsclasslib -n MyApp.UI -it -im

Page:

dotnet new forms-page -n LoginPage -na MyApp.Views

View:

dotnet new forms-view -n CardView -na MyApp.Views

Shell:

dotnet new forms-shell -n AppShell -na MyApp

Resource Dictionary:

With C# code-behind file:

dotnet new forms-resdict -n DarkTheme -na MyApp.Themes

Without C# code-behind file - Xaml Only (Option can be -xo or --xaml-only):

dotnet new forms-resdict -n DarkTheme -na MyApp.Themes -xo

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 is not provided, the .NET CLI template engine will take the current folder name in the context as its name.

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
1.10.0 62 8/22/2024
1.9.0 60 6/24/2024
1.8.0 50 6/21/2024
1.7.0 1,626 1/16/2024
1.6.0 162 1/12/2024
1.5.0 1,249 11/25/2023
1.4.4 92 9/25/2023
1.4.3 121 3/16/2023
1.4.2 1,159 11/23/2022
1.4.1 399 11/4/2022
1.4.0 363 11/1/2022
1.3.1 553 5/31/2022
1.3.0 443 5/2/2022
1.2.0 482 4/20/2022
1.1.0 469 2/25/2022
1.0.0 453 2/3/2022

What's new in ver. 1.2.0:

Dependent packages version updated to latest releases as listed below:

Xamarin.Forms - v5.0.0.2401

Xamarin.CommunityToolkit - v2.0.1

Xamarin.CommunityToolkit.Markup - v2.0.1