Install the templates:
dotnet new --install ck.templates --nuget-source 'https://pkgs.dev.azure.com/Signature-OpenSource/Feeds/_packaging/NetCore4/nuget/v4/index.json'
[Optional] Install with dotnet 7+
Check your dotnet version first dotnet --version
If version is 7+ you can use the new cli arguments without dashes
dotnet new install ck.templates --nuget-source 'https://pkgs.dev.azure.com/Signature-OpenSource/Feeds/_packaging/NetCore3/nuget/v3/index.json'
Under version 7 keep using the previous command.
Create a new CK.DB solution:
dotnet new ckdb
Create a new CK.DB project:
dotnet new pckdb
Create a new CK.DB test project:
dotnet new pckdbtest
Identity | short | Description |
---|---|---|
CK.DB.Template | ckdb | Create a solution that brings a skeleton with sql package and table, setup ready, with sql unit test. |
Project.CK.DB.Template | pckdb | Create a project that brings a skeleton with sql package and table. |
Project.CK.DB.Tests.Template | pckdbtest | Create a test project for sql package. |
Templates are located in templates
folder.
To install locally, first pack CK.Templates with dotnet pack
then install produced package with dotnet new install 'path/to/package'
.
Remove with dotnet new uninstall CK.Templates
.
Add new templates in templates folder.
In folder ckdbsolutiontemplate
.
- Usage :
dotnet new ckdb
- Usage :
dotnet new ckdb -o CK-DB-MyProject
- Usage :
dotnet new ckdb -o MyProject
Note: CK.DB. or CK-DB- or CK_DB_ is absorbed.
And answer y
to the unique prompt to create the git repository (git init).
In folder ckdbprojecttesttemplate
.
Note: Don't forget to refer the project to test.
- CamelCase should start with a lowercase letter where needed (hard to do)
- Add maybe a template for item.