Перейти к файлу
Chris Cheetham 98fdd02d5b Increase command timeout to 60s 2021-06-16 08:20:31 -04:00
.github/ISSUE_TEMPLATE Update GitHub issue labels [#1] 2021-04-30 09:38:49 -04:00
src Add IDE support [#30] 2021-06-04 12:16:14 -04:00
test Increase command timeout to 60s 2021-06-16 08:20:31 -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 Add a NuGet support 2021-06-04 10:28:50 -04:00
DEVELOPER.md Fix example class in sample code 2021-06-02 07:54:52 -04:00
LICENSE Add informational docs and GitHub templates [#1] 2021-04-29 11:15:29 -04:00
README.md Add a doc note to enable templates in VS 2021-06-04 11:20:51 -04:00
Steeltoe.NetCoreToolTemplates.sln Add a NuGet support 2021-06-04 10:28:50 -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

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

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

  --cloud-config          Add client support for Spring Cloud Config.
                          bool - Optional
                          Default: false

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

  --docker                Add support for Docker.
                          bool - Optional
                          Default: false

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

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

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

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

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

  --mongodb               Add access to MongoDB databases.
                          bool - Optional
                          Default: false

  --mysql-efcore          Add access to MySQL databases using Entity Framework Core.
                          bool - Optional
                          Default: false

  --mysql                 Add access to MySQL databases.
                          bool - Optional
                          Default: false

  --oauth                 Add access to OAuth security.
                          bool - Optional
                          Default: false

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

  --postgresql-efcore     Add access to PostgreSQL databases using Entity Framework Core.
                          bool - Optional
                          Default: false

  --postgresql            Add access to PostgreSQL databases.
                          bool - Optional
                          Default: false

  --rabbitmq              Add access to RabbitMQ message brokers.
                          bool - Optional
                          Default: false

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

  --redis                 Add access to Redis data stores.
                          bool - Optional
                          Default: false

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

  --sqlserver             Add access to Microsoft SQL Server databases.
                          bool - Optional
                          Default: false

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