|
|
|
@ -175,6 +175,7 @@ namespace Volo.Abp.Cli.ProjectModification |
|
|
|
{ |
|
|
|
await RemoveProjectByTarget(module, moduleSolutionFile, NuGetPackageTarget.EntityFrameworkCore, isProjectTiered); |
|
|
|
await RemoveProjectByPostFix(module, moduleSolutionFile, "test", ".EntityFrameworkCore.Tests"); |
|
|
|
await RemoveProjectByPostFix(module, moduleSolutionFile, "test", ".Application.Tests"); |
|
|
|
ChangeDomainTestReferenceToMongoDB(module, moduleSolutionFile); |
|
|
|
} |
|
|
|
} |
|
|
|
@ -215,18 +216,16 @@ namespace Volo.Abp.Cli.ProjectModification |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
var projectFolderPath = Directory.GetDirectories(srcPath).FirstOrDefault(d => d.EndsWith(postFix)); |
|
|
|
var projectFolderPaths = Directory.GetDirectories(srcPath).Where(d => d.EndsWith(postFix)).ToList(); |
|
|
|
|
|
|
|
if (projectFolderPath == null) |
|
|
|
foreach (var projectFolderPath in projectFolderPaths) |
|
|
|
{ |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
await SolutionFileModifier.RemoveProjectFromSolutionFileAsync(moduleSolutionFile, new DirectoryInfo(projectFolderPath).Name); |
|
|
|
await SolutionFileModifier.RemoveProjectFromSolutionFileAsync(moduleSolutionFile, new DirectoryInfo(projectFolderPath).Name); |
|
|
|
|
|
|
|
if (Directory.Exists(projectFolderPath)) |
|
|
|
{ |
|
|
|
Directory.Delete(projectFolderPath, true); |
|
|
|
if (Directory.Exists(projectFolderPath)) |
|
|
|
{ |
|
|
|
Directory.Delete(projectFolderPath, true); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|