-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
欧俊
committed
Aug 17, 2021
1 parent
f8b3787
commit df6ba78
Showing
1 changed file
with
40 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,42 @@ | ||
dotnet new --install DotNetCore.ApiTemplate.CSharp::1.0.0 | ||
# 安装 | ||
|
||
`dotnet new --install DotNetCore.ApiTemplate.CSharp::1.0.1` | ||
|
||
dotnet new dncat -n Core.New.Templete -ha true -r true -re true -e true -p false | ||
# 卸载 | ||
|
||
`dotnet new -u DotNetCore.ApiTemplate.CSharp` | ||
# 帮助 | ||
|
||
`dotnet new dncat --help` | ||
|
||
```shell | ||
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` |