@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.IO;
using JetBrains.Annotations;
using Volo.Abp.Studio.Packages;
@ -60,5 +61,10 @@ namespace Volo.Abp.Studio.ModuleInstalling
TargetModulePackages = targetModulePackages;
}
public string GetTargetSourceCodeFolder()
{
return Path.Combine(Path.GetDirectoryName(TargetModule), "modules", ModuleName);
@ -20,10 +20,9 @@ namespace Volo.Abp.Studio.ModuleInstalling.Steps
SourceCodeTypes.Module,
context.Version);
var targetFolder =
Path.Combine(Path.GetDirectoryName(context.TargetModule), "modules", context.ModuleName);
var targetFolder = context.GetTargetSourceCodeFolder();
using (ZipArchive archive = ZipFile.OpenRead(zipFilePath))
using (var archive = ZipFile.OpenRead(zipFilePath))
foreach (var entry in archive.Entries)