Skip to content

Commit

Permalink
Revert unexpected code changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
maliming authored May 21, 2024
1 parent a96301a commit e50f30f
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 e50f30f

Please sign in to comment.