Browse Source
Merge pull request #6839 from abpframework/Fix-SolutionModuleAdder-RemoveProjectByPostFix
Fix SolutionModuleAdder.RemoveProjectByPostFix
pull/6974/head
Halil İbrahim Kalkan
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
6 additions and
0 deletions
-
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectModification/SolutionModuleAdder.cs
|
|
|
@ -206,6 +206,12 @@ namespace Volo.Abp.Cli.ProjectModification |
|
|
|
{ |
|
|
|
var srcPath = Path.Combine(Path.GetDirectoryName(moduleSolutionFile), targetFolder); |
|
|
|
var projectFolderPath = Directory.GetDirectories(srcPath).FirstOrDefault(d=> d.EndsWith(postFix)); |
|
|
|
|
|
|
|
if(projectFolderPath == null) |
|
|
|
{ |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
await SolutionFileModifier.RemoveProjectFromSolutionFileAsync(moduleSolutionFile, new DirectoryInfo(projectFolderPath).Name); |
|
|
|
|
|
|
|
if (Directory.Exists(projectFolderPath)) |
|
|
|
|