.NET Core Templates - dotnet new CLI
1.2K
# With .NET CLI
~$ dotnet new --list
# With Docker
~$ docker run --rm ealen/dotnet-templates
Templates Short Name Language Tags
-----------------------------------------------------------------------------------------------
Ealen .NET Core API ealen-api [C#] Ealen/Common/Api
Ealen .NET Core API CQRS/ES ealen-api-cqrs [C#] Ealen/Common/Api
Ealen .NET Core Console ealen-console [C#] Ealen/Common/Console
| Name | Description | Compose |
|---|---|---|
| ealen-api | REST API with Docker, Swagger, Redoc, Serilog, Seq, Prometheus | Seq |
| ealen-api-cqrs | REST API based on EventFlow with Docker, Swagger, Redoc, Serilog, Seq, Prometheus | mongo, mongo-express, postgres |
| ealen-console | Console App Cross-Platform based on Cocona |
| Parameters | Type | Example |
|---|---|---|
| namespace | C# Namespace | My.Repository |
| repository | GitHub User/Repository | ealen/dotnet-templates |
Install templates nuget with
~$ dotnet new --install Ealen.Dotnet.Templates
~$ dotnet new ealen-api --namespace My.New.Repository --repository ealen/example
The template "Ealen .NET Core API" was created successfully.
Processing post-creation actions...
Restore succeeded.
~$ docker run --rm -v $(pwd):/app ealen/dotnet-templates ealen-api --namespace My.New.Repository --repository ealen/example
The template "Ealen .NET Core API" was created successfully.
Processing post-creation actions...
Restore succeeded.
# With .NET CLI
~$ dotnet new ealen-api --namespace My.New.Repository --repository ealen/example
# With Docker
~$ docker run --rm -v $(pwd):/app ealen/dotnet-templates ealen-api --namespace My.New.Repository --repository ealen/example
/My.New.Repository
│ README.md
│ Api.My.New.Repository.sln
| .gitignore
│
└───src
│ │
│ └───Api.My.New.Repository
│ │ Api.My.New.Repository.csproj
│ │ Startup.cs
│ │ ...
│
└───tests
│ │
│ |───Api.My.New.Repository.IntegrationTests
│ │ │ ...
│ │
│ └───Api.My.New.Repository.UnitTests
│ │ ...
│
└───.github
│ │
│ └───ISSUE_TEMPLATE
│ │ │ ...
│ │
│ └───workflows
│ │ │ ...
|
Content type
Image
Digest
Size
262.7 MB
Last updated
almost 6 years ago
docker pull ealen/dotnet-templates