Browse Source
Merge pull request #19884 from abpframework/maliming-patch-1
Revert unexpected code changes.
pull/19885/head
Enis Necipoglu
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
8 additions and
1 deletions
-
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/AbpIoSourceCodeStore.cs
|
|
|
@ -158,7 +158,14 @@ public class AbpIoSourceCodeStore : ISourceCodeStore, ITransientDependency |
|
|
|
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"); |
|
|
|
|
|
|
|
|