From bda261037a0d56aa50ab1cad6bbc946cf6f611dd Mon Sep 17 00:00:00 2001 From: Jason Taylor Date: Sat, 8 Jul 2023 20:40:48 +1000 Subject: [PATCH] =?UTF-8?q?=F0=9F=8D=BB=20Improve=20template=20experience?= =?UTF-8?q?=20in=20VS.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .template.config/ide.host.json | 27 +++++++++++++++++++++++++++ .template.config/template.json | 10 +++++----- CleanArchitecture.nuspec | 4 ++-- README.md | 2 +- 4 files changed, 35 insertions(+), 8 deletions(-) create mode 100644 .template.config/ide.host.json diff --git a/.template.config/ide.host.json b/.template.config/ide.host.json new file mode 100644 index 000000000..0995709ea --- /dev/null +++ b/.template.config/ide.host.json @@ -0,0 +1,27 @@ +{ + "$schema": "http://json.schemastore.org/vs-2017.3.host", + "order": 0, + "icon": "icon.png", + "symbolInfo": [ + { + "id": "ClientFramework", + "name": { + "text": "Client Framework" + }, + "description": { + "text": "Select the Client Framework type, or select None for Web API only." + }, + "isVisible": true + }, + { + "id": "UseSQLite", + "name": { + "text": "Use SQLite" + }, + "description": { + "text": "Use SQLite for database (default is LocalDB)." + }, + "isVisible": true + } + ] +} diff --git a/.template.config/template.json b/.template.config/template.json index d5225c53d..e481ae5c7 100644 --- a/.template.config/template.json +++ b/.template.config/template.json @@ -23,19 +23,19 @@ "datatype": "choice", "choices": [ { - "choice": "angular", + "choice": "Angular", "description": "Use Angular" }, { - "choice": "react", + "choice": "React", "description": "Use React" }, { - "choice": "none", - "description": "Use Api Only" + "choice": "None", + "description": "Web API only" } ], - "defaultValue": "angular", + "defaultValue": "Angular", "description": "The type of client framework to use" }, "UseAngular": { diff --git a/CleanArchitecture.nuspec b/CleanArchitecture.nuspec index 8aca85415..cdccfed2e 100644 --- a/CleanArchitecture.nuspec +++ b/CleanArchitecture.nuspec @@ -3,7 +3,7 @@ Clean.Architecture.Solution.Template - 8.0.0-preview.5.11 + 8.0.0-preview.5.12 Clean Architecture Solution Template JasonTaylorDev Clean Architecture Solution Template for .NET 8. @@ -11,7 +11,7 @@ A Clean Architecture Solution Template for creating a Single-Page Application (SPA) with ASP.NET Core. - Fixed removal of WebUI.AcceptanceTests project for Web API template. + Improve template experience in Visual Studio IDE. https://github.com/JasonTaylorDev/CleanArchitecture diff --git a/README.md b/README.md index 2e23d24a4..3e0cf5b8d 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ The template depends on the latest versions of: The easiest way to get started is to install the [.NET template](https://www.nuget.org/packages/Clean.Architecture.Solution.Template): ``` -dotnet new install Clean.Architecture.Solution.Template::8.0.0-preview.5.11 +dotnet new install Clean.Architecture.Solution.Template::8.0.0-preview.5.12 ``` Once installed, create a new solution using the template. You can choose to use Angular, React, or create a Web API-only solution. Specify the client framework using the `-cf` or `--client-framework` option, and provide the output directory where your project will be created. Here are some examples: