DotNetCore.ApiTemplate.CSharp
1.0.2
dotnet new install DotNetCore.ApiTemplate.CSharp::1.0.2
This package contains a .NET Template Package you can call from the shell/command line.
安装
dotnet new --install DotNetCore.ApiTemplate.CSharp::1.0.2
卸载
dotnet new -u DotNetCore.ApiTemplate.CSharp
帮助
dotnet new dncat --help
DotNetCoreApiTemplate (C#)
作者: 欧俊
选项:
-ha|--hangfire 是否使用hangfire
bool - Required
-r|--rabbitmq 是否使用RabbitMQ,使用 RabbitMQ.EventBus.AspNetCore包
bool - Required
-re|--redis 是否使用DistributedRedisCache
bool - Required
-p|--pg 是否使用Postgresql
bool - Optional
默认: true
-e|--es 是否使用ElasticSearch
bool - Required
例
使用pg,rabbitmq,redis
dotnet new dncat -n Core.New.Service -ha false -r true -re true -e false -p true
使用pg,rabbitmq,redis,hangfire
dotnet new dncat -n Core.New.Service -ha true -r true -re true -e false -p true
使用pg,rabbitmq,redis,es
dotnet new dncat -n Core.New.Service -ha false -r true -re true -e true -p true
使用rabbitmq,es
dotnet new dncat -n Core.New.Service -ha false -r true -re false -e true -p false
-
net5.0
- AspNetCore.HealthChecks.Elasticsearch (>= 5.0.1)
- AspNetCore.HealthChecks.NpgSql (>= 5.0.2)
- AspNetCore.HealthChecks.Rabbitmq (>= 5.0.1)
- AspNetCore.HealthChecks.UI.Client (>= 5.0.1)
- AutoMapper (>= 10.1.1)
- AutoMapper.Extensions.Microsoft.DependencyInjection (>= 8.1.1)
- FluentValidation.AspNetCore (>= 10.3.0)
- Hangfire.AspNetCore (>= 1.7.24)
- Hangfire.PostgreSql (>= 1.8.6)
- MediatR (>= 9.0.0)
- MediatR.Extensions.Microsoft.DependencyInjection (>= 9.0.0)
- Microsoft.AspNetCore.HeaderPropagation (>= 5.0.9)
- Microsoft.AspNetCore.Mvc.NewtonsoftJson (>= 5.0.9)
- Microsoft.EntityFrameworkCore.Abstractions (>= 5.0.9)
- Microsoft.EntityFrameworkCore.Design (>= 5.0.9)
- Microsoft.EntityFrameworkCore.Proxies (>= 5.0.9)
- Microsoft.EntityFrameworkCore.Tools (>= 5.0.9)
- Microsoft.Extensions.Caching.StackExchangeRedis (>= 5.0.1)
- Microsoft.VisualStudio.Azure.Containers.Tools.Targets (>= 1.11.1)
- NEST (>= 6.8.6)
- Newtonsoft.Json (>= 13.0.1)
- Npgsql.EntityFrameworkCore.PostgreSQL (>= 5.0.7)
- NSwag.AspNetCore (>= 13.13.2)
- RabbitMQ.EventBus.AspNetCore (>= 5.0.21)
- System.Data.SqlClient (>= 4.8.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.2 | 1,091 | 8/17/2021 |