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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
7 additions and
2 deletions
-
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) |
|
|
|
|