From 04b3ee98487d9ced68c031eb96a3cdf8dae3c171 Mon Sep 17 00:00:00 2001 From: liangshiwei Date: Mon, 6 Dec 2021 14:48:22 +0800 Subject: [PATCH] Update AbpIoSourceCodeStore.cs --- .../Volo/Abp/Cli/ProjectBuilding/AbpIoSourceCodeStore.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/AbpIoSourceCodeStore.cs b/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/AbpIoSourceCodeStore.cs index 130d07a921..e46c7d0f45 100644 --- a/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/AbpIoSourceCodeStore.cs +++ b/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/AbpIoSourceCodeStore.cs @@ -90,7 +90,7 @@ namespace Volo.Abp.Cli.ProjectBuilding } } - var nugetVersion = await GetTemplateNugetVersionAsync(name, type, version); + var nugetVersion = (await GetTemplateNugetVersionAsync(name, type, version)) ?? version; if (!string.IsNullOrWhiteSpace(templateSource) && !IsNetworkSource(templateSource)) { @@ -332,4 +332,4 @@ namespace Volo.Abp.Cli.ProjectBuilding public DateTime PublishTime { get; set; } } } -} \ No newline at end of file +}