Browse Source

Merge pull request #6914 from abpframework/Fix-SolutionModuleAdder.RemoveProjectByPostFix

Fix SolutionModuleAdder.RemoveProjectByPostFix
pull/6980/head
Alper Ebicoglu 5 years ago
committed by GitHub
parent
commit
487ea988e5
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectModification/SolutionModuleAdder.cs

9
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectModification/SolutionModuleAdder.cs

@ -205,9 +205,15 @@ namespace Volo.Abp.Cli.ProjectModification
string postFix)
{
var srcPath = Path.Combine(Path.GetDirectoryName(moduleSolutionFile), targetFolder);
if (!Directory.Exists(srcPath))
{
return;
}
var projectFolderPath = Directory.GetDirectories(srcPath).FirstOrDefault(d=> d.EndsWith(postFix));
if(projectFolderPath == null)
if (projectFolderPath == null)
{
return;
}
@ -218,7 +224,6 @@ namespace Volo.Abp.Cli.ProjectModification
{
Directory.Delete(projectFolderPath, true);
}
}
private async Task ChangeDomainTestReferenceToMongoDB(ModuleWithMastersInfo module, string moduleSolutionFile)

Loading…
Cancel
Save