From a4928c405d006de5e6401e35be0ce2c39371e33a Mon Sep 17 00:00:00 2001 From: Bart Koelman <104792814+bart-vmware@users.noreply.github.com> Date: Fri, 28 Feb 2025 03:17:14 +0100 Subject: [PATCH 1/2] Update for Steeltoe v4 and .NET 9 --- .config/dotnet-tools.json | 11 +- .editorconfig | 16 +- .github/workflows/build.yml | 59 ++ .gitignore | 406 ++++++++- .grenrc.yaml | 9 - DEVELOPER.md | 2 +- README.md | 31 +- Steeltoe.NetCoreToolTemplates.sln | 37 +- src/Content/Directory.Build.props | 14 - .../CSharp/.gitignore | 404 ++++++++- .../.template.config/dotnetcli.host.json | 119 ++- .../CSharp/.template.config/ide.host.json | 312 +++++-- .../CSharp/.template.config/template.json | 775 +++++++++++++----- .../CSharp/AppDbContext.cs | 21 + .../CSharp/Company.WebApplication.CS.csproj | 83 +- .../CSharp/Company.WebApplication.CS.http | 6 + .../Controllers/RabbitMessageController.cs | 34 - .../Controllers/WeatherForecastController.cs | 37 - .../CSharp/Directory.Build.props | 41 +- .../CSharp/Dockerfile | 46 +- .../CSharp/HelloHystrixCommand.cs | 6 +- .../CSharp/Models/ErrorViewModel.cs | 11 - .../CSharp/Models/SampleContext.cs | 26 - .../CSharp/Program.cs | 365 +++++++-- .../CSharp/Properties/launchSettings.json | 21 +- .../CSharp/RabbitListenerService.cs | 21 + .../CSharp/Services/RabbitListenerService.cs | 23 - .../CSharp/WeatherForecast.cs | 15 - .../CSharp/appsettings.Development.json | 9 +- .../CSharp/appsettings.json | 9 +- .../CSharp/nuget.config | 7 + .../FSharp/.gitignore | 16 - .../.template.config/dotnetcli.host.json | 115 --- .../FSharp/.template.config/ide.host.json | 175 ---- .../FSharp/.template.config/steeltoe-icon.png | Bin 4744 -> 0 bytes .../FSharp/.template.config/template.json | 416 ---------- .../FSharp/Company.WebApplication.FS.fsproj | 68 -- .../Controllers/RabbitMessageController.fs | 2 - .../Controllers/WeatherForecastController.fs | 38 - .../FSharp/Directory.Build.props | 42 - .../FSharp/Dockerfile | 31 - .../FSharp/HelloHystrixCommand.fs | 9 - .../FSharp/Models/ErrorViewModel.fs | 7 - .../FSharp/Models/SampleContext.fs | 10 - .../FSharp/Program.fs | 198 ----- .../FSharp/Properties/launchSettings.json | 15 - .../FSharp/Services/RabbitListenerService.fs | 13 - .../FSharp/WeatherForecast.fs | 11 - .../FSharp/appsettings.Development.json | 10 - .../FSharp/appsettings.json | 16 - src/Directory.Build.props | 9 - src/Steeltoe.NetCoreTool.Templates.csproj | 20 +- test/Directory.Build.props | 9 +- ...NetCoreTool.Template.Test.Utilities.csproj | 24 - .../AllOptionsTest.cs | 51 ++ .../Assertions/FluentExtensions.cs | 20 +- .../ChoiceParameterTest.cs | 10 +- .../CircuitBreakerHystrixOptionTest.cs | 42 +- .../ConfigurationCloudConfigOptionTest.cs | 21 +- .../ConfigurationEncryptionOptionTest.cs | 27 + .../ConfigurationPlaceholderOptionTest.cs | 25 +- .../ConfigurationRandomValueOptionTest.cs | 20 +- .../ConfigurationSpringBootOptionTest.cs | 44 + .../ConnectorCosmosDbOptionTest.cs | 53 ++ .../ConnectorMongoDbOptionTest.cs | 38 +- .../ConnectorMySqlEfCoreOptionTest.cs | 72 +- .../ConnectorMySqlOptionTest.cs | 43 +- .../ConnectorOAuthOptionTest.cs | 22 +- .../ConnectorPostgreSqlEfCoreOptionTest.cs | 71 +- .../ConnectorPostgreSqlOptionTest.cs | 39 +- .../ConnectorRabbitMqOptionTest.cs | 43 +- .../ConnectorRedisOptionTest.cs | 37 +- .../ConnectorSqlServerEfCoreOptionTest.cs | 82 ++ .../ConnectorSqlServerOptionTest.cs | 44 +- .../DataProtectionRedisOptionTest.cs | 72 ++ .../DefaultsTest.cs | 121 ++- .../DescriptionParameterTest.cs | 2 +- .../DiscoveryConsulOptionTest.cs | 32 + .../DiscoveryEurekaOptionTest.cs | 23 +- .../DistributedTracingOptionTest.cs | 28 +- .../DockerfileOptionTest.cs | 33 +- .../FrameworkParameterTest.cs | 4 +- .../HostingAzureSpringCloudOptionTest.cs | 21 +- .../HostingCloudFoundryOptionTest.cs | 52 +- .../HostingCloudOptionTest.cs | 20 +- .../LoggingDynamicConsoleOptionTest.cs | 31 + .../LoggingDynamicLoggerOptionTest.cs | 26 - .../LoggingDynamicSerilogOptionTest.cs | 35 + .../ManagementEndpointsOptionTest.cs | 27 +- .../ManagementTasksOptionTest.cs | 48 ++ .../MessagingRabbitMqClientOptionTest.cs | 37 +- .../MessagingRabbitMqListenerOptionTest.cs | 54 +- .../MessagingRabbitMqOptionTest.cs | 44 - .../Models/AppSettings.cs | 17 - .../Models/Framework.cs | 3 +- .../Models/Language.cs | 3 +- .../Models/LaunchSettings.cs | 2 + .../Models/ProjectOptions.cs | 2 +- .../Models/SteeltoeVersion.cs | 1 + .../Models/TemplateOptions.cs | 57 +- .../NoRestoreOptionTest.cs | 11 +- .../OptionTest.cs | 10 +- .../ParameterTest.cs | 10 +- .../ProjectOptionTest.cs | 100 ++- ...oe.NetCoreTool.Template.WebApi.Test.csproj | 14 +- .../SteeltoeParameterTest.cs | 3 +- .../TemplateTest.cs | 31 +- .../Utilities}/Command.cs | 2 +- .../Utilities}/Sandbox.cs | 5 +- .../SteeltoeWebApiTemplateInstaller.cs | 22 +- .../Utilities}/TempDirectory.cs | 2 +- version.json | 2 +- 112 files changed, 3546 insertions(+), 2495 deletions(-) create mode 100644 .github/workflows/build.yml delete mode 100644 .grenrc.yaml delete mode 100644 src/Content/Directory.Build.props create mode 100644 src/Content/NetCoreTool.Template.WebApi/CSharp/AppDbContext.cs create mode 100644 src/Content/NetCoreTool.Template.WebApi/CSharp/Company.WebApplication.CS.http delete mode 100644 src/Content/NetCoreTool.Template.WebApi/CSharp/Controllers/RabbitMessageController.cs delete mode 100644 src/Content/NetCoreTool.Template.WebApi/CSharp/Controllers/WeatherForecastController.cs delete mode 100644 src/Content/NetCoreTool.Template.WebApi/CSharp/Models/ErrorViewModel.cs delete mode 100644 src/Content/NetCoreTool.Template.WebApi/CSharp/Models/SampleContext.cs create mode 100644 src/Content/NetCoreTool.Template.WebApi/CSharp/RabbitListenerService.cs delete mode 100644 src/Content/NetCoreTool.Template.WebApi/CSharp/Services/RabbitListenerService.cs delete mode 100644 src/Content/NetCoreTool.Template.WebApi/CSharp/WeatherForecast.cs create mode 100644 src/Content/NetCoreTool.Template.WebApi/CSharp/nuget.config delete mode 100644 src/Content/NetCoreTool.Template.WebApi/FSharp/.gitignore delete mode 100644 src/Content/NetCoreTool.Template.WebApi/FSharp/.template.config/dotnetcli.host.json delete mode 100644 src/Content/NetCoreTool.Template.WebApi/FSharp/.template.config/ide.host.json delete mode 100644 src/Content/NetCoreTool.Template.WebApi/FSharp/.template.config/steeltoe-icon.png delete mode 100644 src/Content/NetCoreTool.Template.WebApi/FSharp/.template.config/template.json delete mode 100644 src/Content/NetCoreTool.Template.WebApi/FSharp/Company.WebApplication.FS.fsproj delete mode 100644 src/Content/NetCoreTool.Template.WebApi/FSharp/Controllers/RabbitMessageController.fs delete mode 100644 src/Content/NetCoreTool.Template.WebApi/FSharp/Controllers/WeatherForecastController.fs delete mode 100644 src/Content/NetCoreTool.Template.WebApi/FSharp/Directory.Build.props delete mode 100644 src/Content/NetCoreTool.Template.WebApi/FSharp/Dockerfile delete mode 100644 src/Content/NetCoreTool.Template.WebApi/FSharp/HelloHystrixCommand.fs delete mode 100644 src/Content/NetCoreTool.Template.WebApi/FSharp/Models/ErrorViewModel.fs delete mode 100644 src/Content/NetCoreTool.Template.WebApi/FSharp/Models/SampleContext.fs delete mode 100644 src/Content/NetCoreTool.Template.WebApi/FSharp/Program.fs delete mode 100644 src/Content/NetCoreTool.Template.WebApi/FSharp/Properties/launchSettings.json delete mode 100644 src/Content/NetCoreTool.Template.WebApi/FSharp/Services/RabbitListenerService.fs delete mode 100644 src/Content/NetCoreTool.Template.WebApi/FSharp/WeatherForecast.fs delete mode 100644 src/Content/NetCoreTool.Template.WebApi/FSharp/appsettings.Development.json delete mode 100644 src/Content/NetCoreTool.Template.WebApi/FSharp/appsettings.json delete mode 100644 src/Directory.Build.props delete mode 100644 test/NetCoreTool.Template.Test.Utilities/Steeltoe.NetCoreTool.Template.Test.Utilities.csproj create mode 100644 test/NetCoreTool.Template.WebApi.Test/AllOptionsTest.cs create mode 100644 test/NetCoreTool.Template.WebApi.Test/ConfigurationEncryptionOptionTest.cs create mode 100644 test/NetCoreTool.Template.WebApi.Test/ConfigurationSpringBootOptionTest.cs create mode 100644 test/NetCoreTool.Template.WebApi.Test/ConnectorCosmosDbOptionTest.cs create mode 100644 test/NetCoreTool.Template.WebApi.Test/ConnectorSqlServerEfCoreOptionTest.cs create mode 100644 test/NetCoreTool.Template.WebApi.Test/DataProtectionRedisOptionTest.cs create mode 100644 test/NetCoreTool.Template.WebApi.Test/DiscoveryConsulOptionTest.cs create mode 100644 test/NetCoreTool.Template.WebApi.Test/LoggingDynamicConsoleOptionTest.cs delete mode 100644 test/NetCoreTool.Template.WebApi.Test/LoggingDynamicLoggerOptionTest.cs create mode 100644 test/NetCoreTool.Template.WebApi.Test/LoggingDynamicSerilogOptionTest.cs create mode 100644 test/NetCoreTool.Template.WebApi.Test/ManagementTasksOptionTest.cs delete mode 100644 test/NetCoreTool.Template.WebApi.Test/MessagingRabbitMqOptionTest.cs rename test/{NetCoreTool.Template.Test.Utilities => NetCoreTool.Template.WebApi.Test/Utilities}/Command.cs (98%) rename test/{NetCoreTool.Template.Test.Utilities => NetCoreTool.Template.WebApi.Test/Utilities}/Sandbox.cs (90%) rename test/NetCoreTool.Template.WebApi.Test/{Utils => Utilities}/SteeltoeWebApiTemplateInstaller.cs (61%) rename test/{NetCoreTool.Template.Test.Utilities/IO => NetCoreTool.Template.WebApi.Test/Utilities}/TempDirectory.cs (92%) diff --git a/.config/dotnet-tools.json b/.config/dotnet-tools.json index d4b62d6..742ea6b 100644 --- a/.config/dotnet-tools.json +++ b/.config/dotnet-tools.json @@ -2,17 +2,12 @@ "version": 1, "isRoot": true, "tools": { - "dotnet-reportgenerator-globaltool": { - "version": "4.6.4", - "commands": [ - "reportgenerator" - ] - }, "nbgv": { - "version": "3.4.244", + "version": "3.7.115", "commands": [ "nbgv" - ] + ], + "rollForward": false } } } \ No newline at end of file diff --git a/.editorconfig b/.editorconfig index 830710e..ddd4480 100644 --- a/.editorconfig +++ b/.editorconfig @@ -2,17 +2,13 @@ root = true [*] indent_style = space -end_of_line = lf +indent_size = 4 +tab-width = 4 +charset = utf-8 trim_trailing_whitespace = true insert_final_newline = true -max_line_length = 120 -charset = utf-8 - -[*.cs] -indent_size = 4 - -[*.{config, csproj, props}] -indent_size = 2 +max_line_length = 160 -[*.{json, yaml}] +[*.{build,config,csproj,js,json,proj,props,targets,xml,ruleset,xsd,yml,yaml}] indent_size = 2 +tab-width = 2 diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..a23eeec --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,59 @@ +name: build-and-test +on: + pull_request: + branches: + - main + push: + branches: + - main + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + +env: + DOTNET_NOLOGO: true + DOTNET_CLI_TELEMETRY_OPTOUT: true + +jobs: + build-and-test: + timeout-minutes: 60 + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, windows-latest, macos-latest] + runs-on: ${{ matrix.os }} + steps: + - name: Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: | + 6.0.* + 8.0.* + 9.0.* + - name: Git checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Restore tools + run: | + dotnet tool restore + - name: Restore packages + run: | + dotnet restore + - name: Build + run: | + dotnet build --no-restore --configuration Release + - name: Test + run: | + dotnet test --no-build --configuration Release --collect:"XPlat Code Coverage" --logger "GitHubActions;summary.includeSkippedTests=true" + - name: Generate packages + shell: pwsh + run: | + dotnet pack src --no-build --configuration Release --output $env:GITHUB_WORKSPACE/artifacts/packages + - name: Upload packages to artifacts + if: matrix.os == 'ubuntu-latest' + uses: actions/upload-artifact@v4 + with: + name: packages + path: artifacts/packages diff --git a/.gitignore b/.gitignore index 6d15496..a4fe18b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,18 +1,400 @@ -# build output -bin/ -obj/ +## Ignore Visual Studio temporary files, build results, and +## files generated by popular Visual Studio add-ons. +## +## Get latest from https://github.com/github/gitignore/blob/main/VisualStudio.gitignore -# user settings -*.DotSettings.User +# User-specific files +*.rsuser +*.suo +*.user +*.userosscache +*.sln.docstates -# Visual Studio +# User-specific files (MonoDevelop/Xamarin Studio) +*.userprefs + +# Mono auto generated files +mono_crash.* + +# Build results +[Dd]ebug/ +[Dd]ebugPublic/ +[Rr]elease/ +[Rr]eleases/ +x64/ +x86/ +[Ww][Ii][Nn]32/ +[Aa][Rr][Mm]/ +[Aa][Rr][Mm]64/ +bld/ +[Bb]in/ +[Oo]bj/ +[Ll]og/ +[Ll]ogs/ + +# Visual Studio 2015/2017 cache/options directory .vs/ +# Uncomment if you have tasks that create the project's static files in wwwroot +#wwwroot/ + +# Visual Studio 2017 auto generated files +Generated\ Files/ + +# MSTest test Results +[Tt]est[Rr]esult*/ +[Bb]uild[Ll]og.* + +# NUnit +*.VisualState.xml +TestResult.xml +nunit-*.xml + +# Build Results of an ATL Project +[Dd]ebugPS/ +[Rr]eleasePS/ +dlldata.c + +# Benchmark Results +BenchmarkDotNet.Artifacts/ + +# .NET Core +project.lock.json +project.fragment.lock.json +artifacts/ + +# ASP.NET Scaffolding +ScaffoldingReadMe.txt + +# StyleCop +StyleCopReport.xml + +# Files built by Visual Studio +*_i.c +*_p.c +*_h.h +*.ilk +*.meta +*.obj +*.iobj +*.pch +*.pdb +*.ipdb +*.pgc +*.pgd +*.rsp +# but not Directory.Build.rsp, as it configures directory-level build defaults +!Directory.Build.rsp +*.sbr +*.tlb +*.tli +*.tlh +*.tmp +*.tmp_proj +*_wpftmp.csproj +*.log +*.tlog +*.vspscc +*.vssscc +.builds +*.pidb +*.svclog +*.scc + +# Chutzpah Test files +_Chutzpah* + +# Visual C++ cache files +ipch/ +*.aps +*.ncb +*.opendb +*.opensdf +*.sdf +*.cachefile +*.VC.db +*.VC.VC.opendb + +# Visual Studio profiler +*.psess +*.vsp +*.vspx +*.sap + +# Visual Studio Trace Files +*.e2e + +# TFS 2012 Local Workspace +$tf/ + +# Guidance Automation Toolkit +*.gpState + +# ReSharper is a .NET coding add-in +_ReSharper*/ +*.[Rr]e[Ss]harper +*.DotSettings.user + +# TeamCity is a build add-in +_TeamCity* + +# DotCover is a Code Coverage Tool +*.dotCover + +# AxoCover is a Code Coverage Tool +.axoCover/* +!.axoCover/settings.json + +# Coverlet is a free, cross platform Code Coverage Tool +coverage*.json +coverage*.xml +coverage*.info + +# Visual Studio code coverage results +*.coverage +*.coveragexml + +# NCrunch +_NCrunch_* +.*crunch*.local.xml +nCrunchTemp_* + +# MightyMoose +*.mm.* +AutoTest.Net/ + +# Web workbench (sass) +.sass-cache/ + +# Installshield output folder +[Ee]xpress/ + +# DocProject is a documentation generator add-in +DocProject/buildhelp/ +DocProject/Help/*.HxT +DocProject/Help/*.HxC +DocProject/Help/*.hhc +DocProject/Help/*.hhk +DocProject/Help/*.hhp +DocProject/Help/Html2 +DocProject/Help/html + +# Click-Once directory +publish/ + +# Publish Web Output +*.[Pp]ublish.xml +*.azurePubxml +# Note: Comment the next line if you want to checkin your web deploy settings, +# but database connection strings (with potential passwords) will be unencrypted +*.pubxml +*.publishproj + +# Microsoft Azure Web App publish settings. Comment the next line if you want to +# checkin your Azure Web App publish settings, but sensitive information contained +# in these scripts will be unencrypted +PublishScripts/ + +# NuGet Packages +*.nupkg +# NuGet Symbol Packages +*.snupkg +# The packages folder can be ignored because of Package Restore +**/[Pp]ackages/* +# except build/, which is used as an MSBuild target. +!**/[Pp]ackages/build/ +# Uncomment if necessary however generally it will be regenerated when needed +#!**/[Pp]ackages/repositories.config +# NuGet v3's project.json files produces more ignorable files +*.nuget.props +*.nuget.targets + +# Microsoft Azure Build Output +csx/ +*.build.csdef + +# Microsoft Azure Emulator +ecf/ +rcf/ + +# Windows Store app package directories and files +AppPackages/ +BundleArtifacts/ +Package.StoreAssociation.xml +_pkginfo.txt +*.appx +*.appxbundle +*.appxupload + +# Visual Studio cache files +# files ending in .cache can be ignored +*.[Cc]ache +# but keep track of directories ending in .cache +!?*.[Cc]ache/ + +# Others +ClientBin/ +~$* +*~ +*.dbmdl +*.dbproj.schemaview +*.jfm +*.pfx +*.publishsettings +orleans.codegen.cs + +# Including strong name files can present a security risk +# (https://github.com/github/gitignore/pull/2483#issue-259490424) +#*.snk + +# Since there are multiple workflows, uncomment next line to ignore bower_components +# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) +#bower_components/ + +# RIA/Silverlight projects +Generated_Code/ + +# Backup & report files from converting an old project file +# to a newer Visual Studio version. Backup files are not needed, +# because we have git ;-) +_UpgradeReport_Files/ +Backup*/ +UpgradeLog*.XML +UpgradeLog*.htm +ServiceFabricBackup/ +*.rptproj.bak + +# SQL Server files +*.mdf +*.ldf +*.ndf + +# Business Intelligence projects +*.rdl.data +*.bim.layout +*.bim_*.settings +*.rptproj.rsuser +*- [Bb]ackup.rdl +*- [Bb]ackup ([0-9]).rdl +*- [Bb]ackup ([0-9][0-9]).rdl + +# Microsoft Fakes +FakesAssemblies/ + +# GhostDoc plugin setting file +*.GhostDoc.xml + +# Node.js Tools for Visual Studio +.ntvs_analysis.dat +node_modules/ + +# Visual Studio 6 build log +*.plg + +# Visual Studio 6 workspace options file +*.opt + +# Visual Studio 6 auto-generated workspace file (contains which files were open etc.) +*.vbw + +# Visual Studio 6 auto-generated project file (contains which files were open etc.) +*.vbp + +# Visual Studio 6 workspace and project file (working project files containing files to include in project) +*.dsw +*.dsp + +# Visual Studio 6 technical files +*.ncb +*.aps + +# Visual Studio LightSwitch build output +**/*.HTMLClient/GeneratedArtifacts +**/*.DesktopClient/GeneratedArtifacts +**/*.DesktopClient/ModelManifest.xml +**/*.Server/GeneratedArtifacts +**/*.Server/ModelManifest.xml +_Pvt_Extensions + +# Paket dependency manager +.paket/paket.exe +paket-files/ + +# FAKE - F# Make +.fake/ + +# CodeRush personal settings +.cr/personal + +# Python Tools for Visual Studio (PTVS) +__pycache__/ +*.pyc + +# Cake - Uncomment if you are using it +# tools/** +# !tools/packages.config + +# Tabs Studio +*.tss + +# Telerik's JustMock configuration file +*.jmconfig + +# BizTalk build output +*.btp.cs +*.btm.cs +*.odx.cs +*.xsd.cs + +# OpenCover UI analysis results +OpenCover/ + +# Azure Stream Analytics local run output +ASALocalRun/ + +# MSBuild Binary and Structured Log +*.binlog + +# NVidia Nsight GPU debugger configuration file +*.nvuser + +# MFractors (Xamarin productivity tool) working folder +.mfractor/ + +# Local History for Visual Studio +.localhistory/ + +# Visual Studio History (VSHistory) files +.vshistory/ + +# BeatPulse healthcheck temp database +healthchecksdb + +# Backup folder for Package Reference Convert tool in Visual Studio 2017 +MigrationBackup/ + +# Ionide (cross platform F# VS Code tools) working folder +.ionide/ + +# Fody - auto-generated XML schema +FodyWeavers.xsd + +# VS Code files for those working on multiple tools +.vscode/* +!.vscode/settings.json +!.vscode/tasks.json +!.vscode/launch.json +!.vscode/extensions.json +*.code-workspace -# Visual Studio Code -.vscode/ +# Local History for Visual Studio Code +.history/ -# Rider -.idea/ +# Windows Installer files from build outputs +*.cab +*.msi +*.msix +*.msm +*.msp -# local tools -tools/ +# JetBrains Rider +*.sln.iml diff --git a/.grenrc.yaml b/.grenrc.yaml deleted file mode 100644 index ccd30ea..0000000 --- a/.grenrc.yaml +++ /dev/null @@ -1,9 +0,0 @@ -dataSource: "issues" -prefix: "" -onlyMilestones: false -groupBy: - "Enhancements": ["enhancement"] - "Bug Fixes": ["bug"] -changelogFilename: "CHANGELOG.md" -template: - issue: "- {{name}} [{{text}}]({{url}})" diff --git a/DEVELOPER.md b/DEVELOPER.md index ad6b753..9801677 100644 --- a/DEVELOPER.md +++ b/DEVELOPER.md @@ -130,7 +130,7 @@ Add the new option to the `symbolInfo` object in `src/Content/NetCoreTool.Templa If you haven't already, install the project template so that it can be invoked using `dotnet new`: ``` -$ dotnet new --install src/Content +$ dotnet new install src/Content ``` Run the `steeltoe-webapi` template with the `--help` option to see the newly added option: diff --git a/README.md b/README.md index 18aa778..265c9bc 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,14 @@ -# Steeltoe NetCoreToolTemplates +# Steeltoe.NetCoreTool.Templates [](https://dev.azure.com/SteeltoeOSS/Steeltoe/_build/latest?definitionId=46&branchName=main) -[](https://github-tools.github.io/github-release-notes/) + [](https://www.nuget.org/packages/Steeltoe.NetCoreTool.Templates) + [](LICENSE) -Steeltoe NetCoreToolTemplates is a collection of .NET Core Tool templates. +This repository contains a collection of [.NET Template Packages](https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-new), +which can be used from IDEs such as Visual Studio and from the .NET CLI using `dotnet new`. They are also used by [Initializr](https://start.steeltoe.io/). Project templates: -
}_Rm~3OF;P8gU1UE@)j>_50Q*VoLZX`m(5Z)Wg)RSzYuolZD
z^D<2?yXw@1;Ctsw1p3u2zL3ByAaB{!j7NlN{0&0StKO^sD@w0BSgC6(`TMgH8s*YR
zbar={^agtg36(2>Q>pYOvaKfG9WVR+EZDvGgjUsg=9RY4yxA8n+7+Zk#Dy%EXnq+z
z&3HxQqg0Q_&?+O+gF12C{mRg?(vq)&+p^5G7#*yMQxwXF-D+WMR**;8GGkn2w~kB2
z=Ql;!0xKkf^yTRzjL`I(B-<75iqXqt4#As^czL}M)E;U?Ca@S2*<3k|rC$J^*ckD!
zSnQ@cmc!1NB`&2m$}QCw<9BB%D0vuq3qMk{J85X<)76-Ap2Mc`z0j4|^X|5@NL81>
zCF9YeR?O){*duO?{~S1B+m&$i*slEgrnve|z-{Dv&25{{t6!P6m&ho2l6nV}#dYUc
z8A?r8zOunRP3{XiyYY-?q?hSGE6f(kuJ<8>#%i*<{-KL9DGgP|S+oUCuy{ULP`NB2;4ji)R$DN*)bvI_{b}7r#=T!3e2k9b%`2W3FoV^d<|s@_s$2-D?n|ZC
zzO7jEZt*=&?(*P>j1Z)Y&JAIt8$A8wUks$hJhHoFO5{QNOnuD^qccIIXpUdlthRw2
ztnMar4H4(vG6xbJ_5@-q+VrecpJ|0^(`Ey|h@4pj6_Rwh*@h;urLZ8_LCHy*g;5>V
z%Ymy!*;)<4Ms{0fW5+Nh)`KCNd&-Le=^4rVh+0!c|95aam+vP169jiTig+hNy)-~0
zWa0GDJD(?0 %rPTyw%D|hokEQ^K;b