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 4 years ago committed by GitHub
commit cf8d33eb5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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());
if (SemanticVersion.Parse(context.TemplateFile.Version) > new SemanticVersion(4, 3, 99))
{
pipeline.Steps.Add(new CreateAppSettingsSecretsStep());
}
pipeline.Steps.AddRange(context.Template.GetCustomSteps(context));

Loading…
Cancel
Save