|
|
@ -107,14 +107,18 @@ namespace Volo.Abp.Cli.ProjectModification
|
|
|
|
|
|
|
|
|
|
|
|
private async Task DownloadSourceCodesToSolutionFolder(ModuleWithMastersInfo module, string modulesFolderInSolution, string version = null)
|
|
|
|
private async Task DownloadSourceCodesToSolutionFolder(ModuleWithMastersInfo module, string modulesFolderInSolution, string version = null)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
var targetModuleFolder = Path.Combine(modulesFolderInSolution, module.Name);
|
|
|
|
|
|
|
|
|
|
|
|
await SourceCodeDownloadService.DownloadAsync(
|
|
|
|
await SourceCodeDownloadService.DownloadAsync(
|
|
|
|
module.Name,
|
|
|
|
module.Name,
|
|
|
|
Path.Combine(modulesFolderInSolution, module.Name),
|
|
|
|
targetModuleFolder,
|
|
|
|
version,
|
|
|
|
version,
|
|
|
|
null,
|
|
|
|
null,
|
|
|
|
null
|
|
|
|
null
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
await DeleteAppFolderAsync(targetModuleFolder);
|
|
|
|
|
|
|
|
|
|
|
|
if (module.MasterModuleInfos == null)
|
|
|
|
if (module.MasterModuleInfos == null)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return;
|
|
|
|
return;
|
|
|
@ -126,6 +130,15 @@ namespace Volo.Abp.Cli.ProjectModification
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private async Task DeleteAppFolderAsync(string targetModuleFolder)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
var appFolder = Path.Combine(targetModuleFolder, "app");
|
|
|
|
|
|
|
|
if (Directory.Exists(appFolder))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
Directory.Delete(appFolder, true);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private async Task AddNugetAndNpmReferences(ModuleWithMastersInfo module, string[] projectFiles)
|
|
|
|
private async Task AddNugetAndNpmReferences(ModuleWithMastersInfo module, string[] projectFiles)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
foreach (var nugetPackage in module.NugetPackages)
|
|
|
|
foreach (var nugetPackage in module.NugetPackages)
|
|
|
|