# Project Templates

## Description

The project templates are a feature of the .NET CLI(dotnet new). They are used by Microsoft to create all of their project/item templates that ship with .net and visual studio. They make it possible to have a standardized structure to your code files. They allow you to pass in parameters and replace placeholders in your code with those parameters.

## Why we use it

Project templates are used to standardized the custom projects that SAIF has. They allow us to save time when creating a new a project and making the sure the structure of the project is correct, the correct packages are installed, and the necessary files are include when the project is created.

## Setup

#### Install Production Templates

`saif doctor fix`

## Links

- <a href="https://learn.microsoft.com/en-us/dotnet/core/tutorials/cli-templates-create-project-template" target="_blank">Create a Project Template</a>
- <a href="https://learn.microsoft.com/en-us/dotnet/core/tools/custom-templates" target="_blank">Custom Templates</a>
- <a href="https://dev.azure.com/SAIFCorporation/Platform/_git/forge?path=/src/templates" target="_blank">SAIF Template Repo</a>
