Skip to content

Commit

Permalink
Merge pull request #19884 from abpframework/maliming-patch-1
Browse files Browse the repository at this point in the history
Revert unexpected code changes.
  • Loading branch information
enisn authored May 21, 2024
2 parents a96301a + e50f30f commit bc0f08d
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 bc0f08d

Please sign in to comment.