diff --git a/README.md b/README.md index cbe8acc..570c512 100644 --- a/README.md +++ b/README.md @@ -31,30 +31,35 @@ Item Templates: To install the template NuGet package, use the below .NET CLI command: ```shell -dotnet new --install VijayAnand.FormsTemplates +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: ```shell -dotnet new --update-check +dotnet new update --check-only ``` ```shell -dotnet new --update-apply +dotnet new update ``` Project template for Xamarin.Forms Class Library and is named as `formsclasslib` -And it currently targets Xamarin.Forms 5.0 Service Release 10 (ver. 5.0.0.2401). +And it currently targets Xamarin.Forms 5.0 Service Release 12 (ver. 5.0.0.2515). Item templates for `ContentPage`, `ContentView`, `ShellPage`, and `ResourceDictionary` in XAML and named as `forms-page`, `forms-view`, `forms-shell`, and `forms-resdict` respectively. There's a C# item template for `ContentPage` and `ContentView` and named as `forms-page-cs` and `forms-view-cs` respectively. Use the below .NET CLI command to create the project, pages, and views out these templates: +An optional parameter has been introduced to choose the library target framework (.NET Standard 2.0 / 2.1): + +* `-f` | `--framework` - Default value is `netstandard2.0` + +Library target framework override: ```shell -dotnet new formsclasslib -n MyApp.Core +dotnet new formsclasslib -n MyApp.Core -f netstandard2.1 ``` -Class library project templates take the below optional parameters to include the officially supported Xamarin.CommunityToolkit, Xamarin.CommunityToolkit.Markup, Xamarin.Essentials, CommunityToolkit.Mvvm (aka Microsoft MVVM Toolkit) or all NuGet packages: +Class library project templates take the below optional parameters to include the officially supported `Xamarin.CommunityToolkit`, `Xamarin.CommunityToolkit.Markup`, `Xamarin.Essentials`, `CommunityToolkit.Mvvm` (aka Microsoft MVVM Toolkit) or all NuGet packages: * `-it` | `--include-toolkit` - Default value is `false` * `-im` | `--include-markup` - Default value is `false` diff --git a/src/Extensions/XFormsTemplates/XFormsTemplates/Assets/VijayAnand.FormsTemplates.1.4.0.nupkg b/src/Extensions/XFormsTemplates/XFormsTemplates/Assets/VijayAnand.FormsTemplates.1.4.0.nupkg deleted file mode 100644 index 10f05b1..0000000 Binary files a/src/Extensions/XFormsTemplates/XFormsTemplates/Assets/VijayAnand.FormsTemplates.1.4.0.nupkg and /dev/null differ diff --git a/src/Extensions/XFormsTemplates/XFormsTemplates/Assets/VijayAnand.FormsTemplates.1.4.2.nupkg b/src/Extensions/XFormsTemplates/XFormsTemplates/Assets/VijayAnand.FormsTemplates.1.4.2.nupkg new file mode 100644 index 0000000..fc08ad5 Binary files /dev/null and b/src/Extensions/XFormsTemplates/XFormsTemplates/Assets/VijayAnand.FormsTemplates.1.4.2.nupkg differ diff --git a/src/Extensions/XFormsTemplates/XFormsTemplates/NuGetTemplates.pkgdef b/src/Extensions/XFormsTemplates/XFormsTemplates/NuGetTemplates.pkgdef index 5e8e4d3..98b2305 100644 --- a/src/Extensions/XFormsTemplates/XFormsTemplates/NuGetTemplates.pkgdef +++ b/src/Extensions/XFormsTemplates/XFormsTemplates/NuGetTemplates.pkgdef @@ -1,2 +1,2 @@ -[$RootKey$\TemplateEngine\Templates\VijayAnand.FormsTemplates\1.4.0] +[$RootKey$\TemplateEngine\Templates\VijayAnand.FormsTemplates\1.4.2] "InstalledPath"="$PackageFolder$\ProjectTemplates" diff --git a/src/Extensions/XFormsTemplates/XFormsTemplates/XFormsTemplates.csproj b/src/Extensions/XFormsTemplates/XFormsTemplates/XFormsTemplates.csproj index 5a1b861..45ff9ce 100644 --- a/src/Extensions/XFormsTemplates/XFormsTemplates/XFormsTemplates.csproj +++ b/src/Extensions/XFormsTemplates/XFormsTemplates/XFormsTemplates.csproj @@ -68,7 +68,7 @@ true ItemTemplates\Xamarin.Forms - + Designer VsixManifestGenerator diff --git a/src/Extensions/XFormsTemplates/XFormsTemplates/release-notes.txt b/src/Extensions/XFormsTemplates/XFormsTemplates/release-notes.txt index e99cefe..0e91f18 100644 --- a/src/Extensions/XFormsTemplates/XFormsTemplates/release-notes.txt +++ b/src/Extensions/XFormsTemplates/XFormsTemplates/release-notes.txt @@ -1,4 +1,8 @@ -What's new in ver. 1.4.0.0: +What's new in ver. 1.4.2.0: + +A little housekeeping to improve the reliability of the templates. + +v1.4.0.0: 1. Included an option to add reference Xamarin.Essentials NuGet package during Xamarin.Forms class library creation. diff --git a/src/Extensions/XFormsTemplates/XFormsTemplates/source.extension.cs b/src/Extensions/XFormsTemplates/XFormsTemplates/source.extension.cs index 2cf91b2..c5cf10d 100644 --- a/src/Extensions/XFormsTemplates/XFormsTemplates/source.extension.cs +++ b/src/Extensions/XFormsTemplates/XFormsTemplates/source.extension.cs @@ -11,7 +11,7 @@ internal sealed partial class Vsix public const string Name = "Xamarin.Forms Project and Item Templates"; public const string Description = @"Xamarin.Forms Project and Item Templates for building native apps for iOS, Android, UWP, macOS, Tizen from a single, shared C# codebase."; public const string Language = "en-US"; - public const string Version = "1.4.0.0"; + public const string Version = "1.4.2.0"; public const string Author = "Vijay Anand E G"; public const string Tags = "Xamarin.Forms, Mobile, iOS, Android, UWP, Desktop, Windows, Templates, Shell, Library, Visual Studio, Resource Dictionary, Xamarin, macOS, Tizen"; } diff --git a/src/Extensions/XFormsTemplates/XFormsTemplates/source.extension.vsixmanifest b/src/Extensions/XFormsTemplates/XFormsTemplates/source.extension.vsixmanifest index 5020f49..96cc996 100644 --- a/src/Extensions/XFormsTemplates/XFormsTemplates/source.extension.vsixmanifest +++ b/src/Extensions/XFormsTemplates/XFormsTemplates/source.extension.vsixmanifest @@ -1,7 +1,7 @@ - + Xamarin.Forms Project and Item Templates Xamarin.Forms Project and Item Templates for building native apps for iOS, Android, UWP, macOS, Tizen from a single, shared C# codebase. https://egvijayanand.in/