From 35916f57bd19b65092454117fa6a43a7b5a39c1a Mon Sep 17 00:00:00 2001 From: zijianhuang Date: Tue, 11 Jun 2024 09:48:54 +1000 Subject: [PATCH] minor fixes --- DemoGodAssemblyWeb/README.md | 4 ++-- HeroesDemo/startDev.ps1 | 3 ++- HeroesDemo/startProd.ps1 | 3 ++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/DemoGodAssemblyWeb/README.md b/DemoGodAssemblyWeb/README.md index 16393556..7d671149 100644 --- a/DemoGodAssemblyWeb/README.md +++ b/DemoGodAssemblyWeb/README.md @@ -4,9 +4,9 @@ WebApiClientGen presumes that application developers use opt-in approaches for c 1. Publish some service data models to clients, but without API functions. 1. Publish custom data models used in Web API functions plus some data models not used in Web API functions directly. -However, typical scaffolding codes of Visual Studio for Web projects as well as other host projects like WinForms, WPF, Xamarin and MAUI are typically contained in a "god assembly". Many so called enterprise applications or ASP.NET Web API projects have been evolving from such god assembly from initial scaffolding codes, becoming a bigger and bigger god assembly. +Typical scaffolding codes of Visual Studio for Web projects as well as other host projects like WinForms, WPF, Xamarin and MAUI are typically contained in a "god assembly", a single application project. Many so called enterprise applications or ASP.NET Web API projects have been evolving from such god assembly from the initial scaffolding codes, becoming a bigger and bigger god assembly. -Having a god assembly is not wrong, since it is just a fact or an inconvenient truth in the software development industries, thus WebApiClientGen prvides some reluctant support to god ASP.NET Core Web API assembly. +Having a god assembly is not wrong, since it is just a fact or an inconvenient truth in the software development industries, thus WebApiClientGen provides some reluctant support to god ASP.NET Core Web API assembly. Having a god class is not wrong, however nasty consequences have been well documented in various software engineering text books. diff --git a/HeroesDemo/startDev.ps1 b/HeroesDemo/startDev.ps1 index 03e1f797..43d0bb4c 100644 --- a/HeroesDemo/startDev.ps1 +++ b/HeroesDemo/startDev.ps1 @@ -1,2 +1,3 @@ #Run prod build with dotnet hosting -dotnet-serve -d C:/VSProjects/OpenSource/webapiclientgen/ngdist/dev -p 5200 +cd $PSScriptRoot +dotnet-serve -d ../ngdist/dev -p 5200 diff --git a/HeroesDemo/startProd.ps1 b/HeroesDemo/startProd.ps1 index 216a4570..7b09e5d3 100644 --- a/HeroesDemo/startProd.ps1 +++ b/HeroesDemo/startProd.ps1 @@ -1,2 +1,3 @@ #Run prod build with dotnet hosting -dotnet-serve -d C:/VSProjects/OpenSource/webapiclientgen/ngdist/prod -p 5200 +cd $PSScriptRoot +dotnet-serve -d ../ngdist/prod -p 5200