Перейти к файлу
Chris Cheetham 87343fdef9 Use dotnet to build template NuGet 2021-07-02 15:51:54 -04:00
.github/ISSUE_TEMPLATE Update GitHub issue labels [#1] 2021-04-30 09:38:49 -04:00
src Use dotnet to build template NuGet 2021-07-02 15:51:54 -04:00
test Use dotnet to build template NuGet 2021-07-02 15:51:54 -04:00
.editorconfig Add .props file configuration 2021-05-12 11:46:08 -04:00
.gitattributes Omit CR at EOL by default 2021-05-06 09:00:45 -04:00
.gitignore Use dotnet to build template NuGet 2021-07-02 15:51:54 -04:00
DEVELOPER.md Update developer doc per renamed project 2021-06-16 08:34:58 -04:00
LICENSE Add informational docs and GitHub templates [#1] 2021-04-29 11:15:29 -04:00
README.md Update template options doc 2021-07-02 09:58:02 -04:00
Steeltoe.NetCoreToolTemplates.sln Use dotnet to build template NuGet 2021-07-02 15:51:54 -04:00
azure-pipelines.yaml Use a simple smoke test per option for pipeline 2021-05-13 10:01:29 -04:00
nuget.config Initial config for NuGets 2021-05-10 11:12:47 -04:00

README.md

Steeltoe NetCoreToolTemplates

Build Status

Steeltoe NetCoreToolTemplates is a collection of .NET Core Tool templates.

Project templates:

steeltoe-webapi
Creates a Steeltoe-influenced .NET Web API project

This document describes template installation and template general usage help. For learning how to develop additional options for the templates, see DEVELOPER.md.

Install

From Source

$ nuget pack src/Steeltoe.NetCoreTool.Templates.nuspec -NoDefaultExcludes
$ dotnet new --install Steeltoe.NetCoreTool.Templates.0.0.1.nupkg

Note: To see templates in Visual Studio, you may need to enable:

Tools->Options... Preview Features: Show all .NET Core templates in the NEW project dialog

Uninstall

$ dotnet new --uninstall Steeltoe.NetCoreTool.Templates

steeltoe-webapi

About

Creates a Steeltoe-influenced .NET Web API project.

Usage

$ dotnet new steeltoe-webapi [options]

Options

  --circuit-breaker-hystrix      Add support for Netflix Hystrix, a latency and fault tolerance library.
                                 bool - Optional
                                 Default: false

  --configuration-cloud-config   Add a Spring Cloud Config configuration source.
                                 bool - Optional
                                 Default: false

  --configuration-placeholder    Add a placeholder configuration source.
                                 bool - Optional
                                 Default: false

  --configuration-random-value   Add a random value configuration source.
                                 bool - Optional
                                 Default: false

  --connector-mongodb            Add a connector for MongoDB databases.
                                 bool - Optional
                                 Default: false

  --connector-mysql-efcore       Add a connector for MySQL databases using Entity Framework Core.
                                 bool - Optional
                                 Default: false

  --connector-mysql              Add a connector for MySQL databases.
                                 bool - Optional
                                 Default: false

  --connector-oauth              Add a connector for OAuth security.
                                 bool - Optional
                                 Default: false

  --connector-postgresql-efcore  Add a connector for PostgreSQL databases using Entity Framework Core.
                                 bool - Optional
                                 Default: false

  --connector-postgresql         Add a connector for PostgreSQL databases.
                                 bool - Optional
                                 Default: false

  --connector-rabbitmq           Add a connector for RabbitMQ message brokers.
                                 bool - Optional
                                 Default: false

  --connector-redis              Add a connector for Redis data stores.
                                 bool - Optional
                                 Default: false

  --connector-sqlserver          Add a connector for Microsoft SQL Server databases.
                                 bool - Optional
                                 Default: false

  -D|--description               Add a project description.
                                 string - Optional

  --discovery-eureka             Add access to Eureka, a REST-based service for locating services.
                                 bool - Optional
                                 Default: false

  --dockerfile                   Add a Dockerfile.
                                 bool - Optional
                                 Default: false

  -f|--framework                 Set the target framework for the project.
                                     net5.0
                                     netcoreapp3.1
                                     netcoreapp2.1
                                 Default: net5.0

  --hosting-azure-spring-cloud   Add hosting support for Microsoft Azure Spring Cloud.
                                 bool - Optional
                                 Default: false

  --hosting-cloud-foundry        Add hosting support for Cloud Foundry.
                                 bool - Optional
                                 Default: false

  --logging-dynamic-logger       Add a dynamic logger.
                                 bool - Optional
                                 Default: false

  --management-endpoints         Add application management endpoints, such as health and metrics.
                                 bool - Optional
                                 Default: false

  --messaging-rabbitmq           Add RabbitMQ messaging support and auto-configuration.
                                 bool - Optional
                                 Default: false

  --no-restore                   Skip the automatic restore of the project on create.
                                 bool - Optional
                                 Default: false

  -s|--steeltoe                  Set the Steeltoe version for the project.
                                 string - Optional
                                 Default: 3.0.*

  --stream-rabbitmq              Add RabbitMQ stream support and auto-configuration.
                                 bool - Optional
                                 Default: false