Create a project using the Nuget template package
Install the package
Access Ensono.Stacks.Templates package page in Nuget here. Copy and execute the command displayed in the page (if you want to get the latest version). For example:
Run the command to install the package
dotnet new install Ensono.Stacks.Templates
Create a new project
Navigate to the folder where you wish to create a new project in.
Run the command to create the project
dotnet new stacks-webapi -n Company.Project -do YourDomain --cloudProvider Azure
The above command will create a folder and a repository called Company.Project
with DevOps build pipelines ready for Azure DevOps.
Uninstalling a template
To uninstall the template pack you have to execute the following command
dotnet new uninstall Ensono.Stacks.Templates
Template parameter details
- -n|--name
- Sets the project name
- Omitting it will result in the project name being the same as the folder where the command has been ran from
- -do|--domain
- Sets the name of the aggregate root object. It is also the name of the collection within CosmosDB instance.
- -o|--output
- Sets the path to where the project is added
- Omitting the parameter will result in the creation of a new folder
- --cloudProvider
- Configures which cloud provider to be used
- -cicd|--cicdProvider
- Configures which cicd provider templates to be used