Browse Source
Merge pull request #9597 from abpframework/liangshiwei/cli-patch-1
Do not create appsettings.secrets.json for templates below 4.4
pull/9621/head
maliming
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
6 additions and
1 deletions
-
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/Building/TemplateProjectBuildPipelineBuilder.cs
|
|
|
@ -1,4 +1,5 @@ |
|
|
|
using System; |
|
|
|
using NuGet.Versioning; |
|
|
|
using Volo.Abp.Cli.ProjectBuilding.Building.Steps; |
|
|
|
using Volo.Abp.Cli.ProjectBuilding.Templates.App; |
|
|
|
using Volo.Abp.Cli.ProjectBuilding.Templates.Microservice; |
|
|
|
@ -13,7 +14,11 @@ namespace Volo.Abp.Cli.ProjectBuilding.Building |
|
|
|
var pipeline = new ProjectBuildPipeline(context); |
|
|
|
|
|
|
|
pipeline.Steps.Add(new FileEntryListReadStep()); |
|
|
|
pipeline.Steps.Add(new CreateAppSettingsSecretsStep()); |
|
|
|
|
|
|
|
if (SemanticVersion.Parse(context.TemplateFile.Version) > new SemanticVersion(4, 3, 99)) |
|
|
|
{ |
|
|
|
pipeline.Steps.Add(new CreateAppSettingsSecretsStep()); |
|
|
|
} |
|
|
|
|
|
|
|
pipeline.Steps.AddRange(context.Template.GetCustomSteps(context)); |
|
|
|
|
|
|
|
|