Skip to content

Latest commit

 

History

History
46 lines (34 loc) · 1.79 KB

README.md

File metadata and controls

46 lines (34 loc) · 1.79 KB

Setup

  • Replace TEMPLATE_NAME, TEMPLATE_SHORT_NAME,PROJECT_DEFAULT_NAME, GIT_HUB_USER, AUTOR, TEMPLATE_TITLE with the name of your template
    • Bnaya.Dotnet.Template.csproj
    • templates/Skeleton/template.json
  • Replace AUTOR with the name of your template (templates/Skeleton/template.json)
  • Take a look at the license and change it if needed

Creating a custom .NET CLI template

NuGet

# dotnet build --force
dotnet pack -c Release --force -o .
# dotnet new install . 
dotnet new install TEMPLATE_NAME
dotnet new TEMPLATE_SHORT_NAME -h
dotnet new TEMPLATE_SHORT_NAME -n {name-of-the-project}
# dotnet new uninstall {name-of-the-project}
# dotnet new uninstall .
dotnet new uninstall TEMPLATE_NAME

CLI

dotnet new TEMPLATE_SHORT_NAME -n Company.HelloWorld

Attribution

Icon