Cli: Fix SolutionModuleAdder ChangeDomainTestReferenceToMongoDB

pull/8099/head
Yunus Emre Kalkan 5 years ago
parent 0cd5d26894
commit 23e281cf1d

@ -245,8 +245,8 @@ namespace Volo.Abp.Cli.ProjectModification
return;
}
var csprojFile = Directory.GetFiles(projectFolderPath).FirstOrDefault(p => p.EndsWith(".csproj"));
var moduleFile = Directory.GetFiles(projectFolderPath).FirstOrDefault(p => p.EndsWith("DomainTestModule.cs"));
var csprojFile = Directory.GetFiles(projectFolderPath, ".csproj", SearchOption.AllDirectories).FirstOrDefault();
var moduleFile = Directory.GetFiles(projectFolderPath, "*DomainTestModule.cs", SearchOption.AllDirectories).FirstOrDefault();
if (csprojFile == null || moduleFile == null)
{

Loading…
Cancel
Save