Skip to content

Commit

Permalink
Merge pull request #19885 from abpframework/auto-merge/rel-8-2/2737
Browse files Browse the repository at this point in the history
Merge branch dev with rel-8.2
  • Loading branch information
maliming authored May 21, 2024
2 parents c2285bd + bc0f08d commit 3e47f9c
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,14 @@ public async Task<TemplateFile> GetAsync(
throw new Exception("There is no version found with given version: " + version);
}

var nugetVersion = version;
var nugetVersion = await GetTemplateNugetVersionAsync(name, type, version) ?? version;

if (!string.IsNullOrWhiteSpace(templateSource) && !IsNetworkSource(templateSource))
{
Logger.LogInformation("Using local " + type + ": " + name + ", version: " + version);
return new TemplateFile(File.ReadAllBytes(Path.Combine(templateSource, name + "-" + version + ".zip")),
version, latestVersion, nugetVersion);
}

var localCacheFile = Path.Combine(CliPaths.TemplateCache, name.Replace("/", ".") + "-" + version + ".zip");

Expand Down

0 comments on commit 3e47f9c

Please sign in to comment.