sayedha.templates 1.0.6

dotnet new install sayedha.templates::1.0.6
This package contains a .NET Template Package you can call from the shell/command line.

Some templates that Sayed has authored.

This repo contains a few templates that can help you create your own tempaltes for dotnet new as well as a template to create a new dotnet cli tool. For info on how to create your own dotnet templates go to https://aka.ms/netcore-templates.

To install this template pack, run the following command in a terminal.

dotnet new --install sayedha.templates

Templates

templatejson

To create the template.json file you can use the templatejson template. Create a new template.json file with the command below after installing the template pack.

dotnet new templatejson

This will create a template.json file in the current directory.

templatepackcsproj

When creating templates, you'll need to pack them into a NuGet package to distribute them. You can learn more about this at Packing a template into a NuGet package (nupkg file). To create the csproj file that can be used to pack your template pack execute the command below.

dotnet new templatepackcsproj

This will create a file named template.csproj in the current directory. You'll need to customize the content of the file to suit your needs.

idehostjson

In most cases template authors don't need to tweak settings for the IDE, but in the cases that it's needed, you can do that with an ide.host.json file. To create that file execute the command below.

dotnet new idehostjson

This will create an ide.host.json file in the current directory.

clitool

This is a project template for a dotnet new tool that uses System.CommandLine. This template is setup as a tool that has a single sub-command. You can easily add more commands as needed.

To create a project from this template, execute the command below.

dotnet new clitool

This template has some options, to explore what's available, invoke the command specific help with.

dotnet new clitool -h
  • .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.0.6 1,025 12/16/2021
1.0.5 4,420 11/24/2021
1.0.4 308 11/11/2021
1.0.3 267 11/10/2021
1.0.2 305 11/10/2021
1.0.0 270 11/10/2021