From b4ac7868260195ec7f7dc275be9e0a9a68e7463d Mon Sep 17 00:00:00 2001 From: liangshiwei Date: Tue, 30 Apr 2024 15:01:40 +0800 Subject: [PATCH] Fix CLI create new project problem --- ...ppsettingsFilePortChangeForSeparatedAuthServersStep.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/Templates/App/BlazorAppsettingsFilePortChangeForSeparatedAuthServersStep.cs b/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/Templates/App/BlazorAppsettingsFilePortChangeForSeparatedAuthServersStep.cs index b78f61ccd03..c7a7c6d726e 100644 --- a/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/Templates/App/BlazorAppsettingsFilePortChangeForSeparatedAuthServersStep.cs +++ b/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/Templates/App/BlazorAppsettingsFilePortChangeForSeparatedAuthServersStep.cs @@ -10,15 +10,17 @@ public override void Execute(ProjectBuildContext context) { var appsettingsFile = context.Files.FirstOrDefault(x => !x.IsDirectory && - x.Name.EndsWith("aspnet-core/src/MyCompanyName.MyProjectName.Blazor/wwwroot/appsettings.json", - StringComparison.InvariantCultureIgnoreCase) + (x.Name.EndsWith("aspnet-core/src/MyCompanyName.MyProjectName.Blazor/wwwroot/appsettings.json", + StringComparison.InvariantCultureIgnoreCase) || + x.Name.EndsWith("aspnet-core/src/MyCompanyName.MyProjectName.Blazor.Client/wwwroot/appsettings.json", + StringComparison.InvariantCultureIgnoreCase)) ); if (appsettingsFile == null) { return; } - + appsettingsFile.NormalizeLineEndings(); var lines = appsettingsFile.GetLines();