Skip to content

sayedihashimi/sayedha.templates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published