From 6d234f18eae0301118591e30638020ec27e4c301 Mon Sep 17 00:00:00 2001 From: Hanpaopao <510423039@qq.com> Date: Mon, 23 Dec 2024 12:01:43 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dcli?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Lion.AbpPro.Cli.Core/Lion/AbpPro/Cli/Commands/NewCommand.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aspnet-core/frameworks/src/Lion.AbpPro.Cli.Core/Lion/AbpPro/Cli/Commands/NewCommand.cs b/aspnet-core/frameworks/src/Lion.AbpPro.Cli.Core/Lion/AbpPro/Cli/Commands/NewCommand.cs index 72475480..de6f2f75 100644 --- a/aspnet-core/frameworks/src/Lion.AbpPro.Cli.Core/Lion/AbpPro/Cli/Commands/NewCommand.cs +++ b/aspnet-core/frameworks/src/Lion.AbpPro.Cli.Core/Lion/AbpPro/Cli/Commands/NewCommand.cs @@ -95,7 +95,7 @@ public class NewCommand : IConsoleCommand, ITransientDependency context.OutputFolder = outputFolder; - if (_cliOptions.Templates.FirstOrDefault(e => e.Name == template) != null) + if (_cliOptions.Templates.FirstOrDefault(e => e.Name == template) != null && template =="local") { var source = commandLineArgs.Options.GetOrNull(CommandOptions.Source.Short, CommandOptions.Source.Long); context.TemplateFolder = source;