Skip to content

Commit

Permalink
VS extension updated with its corresponding NuGet release
Browse files Browse the repository at this point in the history
  • Loading branch information
egvijayanand committed Nov 23, 2022
1 parent 347673e commit c151a1f
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 11 deletions.
17 changes: 11 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[$RootKey$\TemplateEngine\Templates\VijayAnand.FormsTemplates\1.4.0]
[$RootKey$\TemplateEngine\Templates\VijayAnand.FormsTemplates\1.4.2]
"InstalledPath"="$PackageFolder$\ProjectTemplates"
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
<IncludeInVSIX>true</IncludeInVSIX>
<VSIXSubPath>ItemTemplates\Xamarin.Forms</VSIXSubPath>
</Content>
<None Include="Assets\VijayAnand.FormsTemplates.1.4.0.nupkg"/>
<None Include="Assets\VijayAnand.FormsTemplates.1.4.2.nupkg"/>
<None Include="source.extension.vsixmanifest">
<SubType>Designer</SubType>
<Generator>VsixManifestGenerator</Generator>
Expand Down
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
<Metadata>
<Identity Id="XFormsTemplates.2924dcc2-7ffd-4b48-8828-c830a2fab6e0" Version="1.4.0.0" Language="en-US" Publisher="Vijay Anand E G" />
<Identity Id="XFormsTemplates.2924dcc2-7ffd-4b48-8828-c830a2fab6e0" Version="1.4.2.0" Language="en-US" Publisher="Vijay Anand E G" />
<DisplayName>Xamarin.Forms Project and Item Templates</DisplayName>
<Description xml:space="preserve">Xamarin.Forms Project and Item Templates for building native apps for iOS, Android, UWP, macOS, Tizen from a single, shared C# codebase.</Description>
<MoreInfo>https://egvijayanand.in/</MoreInfo>
Expand Down

0 comments on commit c151a1f

Please sign in to comment.